v.22.4Improvement

Fix AccessType Retrieval for s3cluster, HDFSCluster, and hive Functions

For table function s3cluster or HDFSCluster or hive, we can't get right AccessType by StorageFactory::instance().getSourceAccessType(getStorageTypeName()). This pr fix it. #35365 (李扬).
Fixed incorrect AccessType retrieval for s3cluster, HDFSCluster, and hive table functions when calling StorageFactory::instance().getSourceAccessType(getStorageTypeName()).

Why it matters

This fix addresses the problem where the AccessType was not correctly obtained for these cluster-based table functions, ensuring that the storage access type reflects the actual storage correctly. This improves reliability and correctness when working with clustered storage functions in ClickHouse.

How to use it

The fix is applied internally to the function StorageFactory::instance().getSourceAccessType. Users do not need to change their queries; the correct AccessType will be automatically used when accessing s3cluster, HDFSCluster, or hive table functions after upgrading to the version that includes this fix.