Class SnowflakeConstants


  • public final class SnowflakeConstants
    extends Object
    • Field Detail

      • JDBC_PROPERTIES

        public static final Map<String,​String> JDBC_PROPERTIES
      • MAX_PARTITION_COUNT

        public static final int MAX_PARTITION_COUNT
        This constant limits the number of partitions. The default set to 50. A large number may cause a timeout issue. We arrived at this number after performance testing with datasets of different size
        See Also:
        Constant Field Values
      • SINGLE_SPLIT_LIMIT_COUNT

        public static final int SINGLE_SPLIT_LIMIT_COUNT
        This constant limits the number of records to be returned in a single split.
        See Also:
        Constant Field Values
      • LARGE_TABLE_THRESHOLD

        public static final long LARGE_TABLE_THRESHOLD
        Tables exceeding this row count threshold will skip the expensive primary key uniqueness check and fall back to single partition.
        See Also:
        Constant Field Values
      • UNIQUENESS_CHECK_TIMEOUT_SECONDS

        public static final int UNIQUENESS_CHECK_TIMEOUT_SECONDS
        Statement-level timeout (in seconds) for the primary key uniqueness check query. If the query exceeds this timeout, it will be cancelled and the connector will fall back to single partition rather than waiting for the Lambda timeout (900s).
        See Also:
        Constant Field Values
      • SSL_CERT_FILE_LOCATION

        public static final String SSL_CERT_FILE_LOCATION
        A ssl file location constant to store the SSL certificate The file location is fixed at /tmp directory to retrieve ssl certificate location
        See Also:
        Constant Field Values
      • AUTHENTICATOR

        public static final String AUTHENTICATOR
        Configuration key for specifying the authentication method
        See Also:
        Constant Field Values
      • AUTH_CODE

        public static final String AUTH_CODE
        OAuth 2.0 Authentication Constants These constants are used for configuring OAuth-based authentication with Snowflake.
        See Also:
        Constant Field Values
      • SF_USER

        public static final String SF_USER
        Key-Pair Authentication Constants These constants are used for configuring public/private key pair authentication with Snowflake.
        See Also:
        Constant Field Values
      • USERNAME

        public static final String USERNAME
        Password Authentication Constants These constants are used for traditional username/password authentication with Snowflake.
        See Also:
        Constant Field Values
      • USERNAME_UPPERCASE

        public static final String USERNAME_UPPERCASE
      • PASSWORD_UPPERCASE

        public static final String PASSWORD_UPPERCASE
      • SNOWFLAKE_ENABLE_S3_EXPORT

        public static final String SNOWFLAKE_ENABLE_S3_EXPORT
        S3 export related constant.
        See Also:
        Constant Field Values
      • DESCRIBE_STORAGE_INTEGRATION_TEMPLATE

        public static final String DESCRIBE_STORAGE_INTEGRATION_TEMPLATE
        See Also:
        Constant Field Values
      • STORAGE_INTEGRATION_PROPERTY_VALUE_KEY

        public static final String STORAGE_INTEGRATION_PROPERTY_VALUE_KEY
        See Also:
        Constant Field Values
      • STORAGE_INTEGRATION_STORAGE_PROVIDER_KEY

        public static final String STORAGE_INTEGRATION_STORAGE_PROVIDER_KEY
        See Also:
        Constant Field Values
    • Method Detail

      • isS3ExportEnabled

        public static boolean isS3ExportEnabled​(Map<String,​String> configOptions)