Uses of Class
net.snowflake.client.jdbc.SnowflakeSQLException
-
Packages that use SnowflakeSQLException Package Description net.snowflake.client.config net.snowflake.client.core net.snowflake.client.core.arrow net.snowflake.client.jdbc net.snowflake.client.jdbc.cloud.storage -
-
Uses of SnowflakeSQLException in net.snowflake.client.config
Methods in net.snowflake.client.config that throw SnowflakeSQLException Modifier and Type Method Description static ConnectionParameters
SFConnectionConfigParser. buildConnectionParameters()
-
Uses of SnowflakeSQLException in net.snowflake.client.core
Methods in net.snowflake.client.core that throw SnowflakeSQLException Modifier and Type Method Description static void
StmtUtil. cancel(net.snowflake.client.core.StmtUtil.StmtInput stmtInput)
Deprecated.static void
StmtUtil. cancel(net.snowflake.client.core.StmtUtil.StmtInput stmtInput, CancellationReason cancellationReason)
Cancel a statement identifiable by a request idstatic void
StmtUtil. cancel(net.snowflake.client.core.StmtUtil.StmtInput stmtInput, CancellationReason cancellationReason, SFBaseSession sfSession)
Cancel a statement identifiable by a request idvoid
SFArrowResultSet. close()
void
SFBaseResultSet. close()
abstract void
SFBaseSession. close()
Close the connectionvoid
SFFixedViewResultSet. close()
void
SFResultSet. close()
void
SFSession. close()
Close the connectionstatic StmtUtil.StmtOutput
StmtUtil. execute(net.snowflake.client.core.StmtUtil.StmtInput stmtInput, ExecTimeTelemetryData execTimeData)
Execute a statementstatic StmtUtil.StmtOutput
StmtUtil. execute(net.snowflake.client.core.StmtUtil.StmtInput stmtInput, ExecTimeTelemetryData execTimeData, SFBaseSession sfSession)
Execute a statementstatic String
HttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, HttpClientSettingsKey ocspAndProxyAndGzipKey)
Deprecated.static String
HttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, HttpClientSettingsKey ocspAndProxyAndGzipKey, SFBaseSession sfSession)
Executes an HTTP request for Snowflake.static String
HttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, HttpClientSettingsKey ocspAndProxyAndGzipKey, RetryContextManager retryContextManager, SFBaseSession sfSession)
Executes an HTTP request for Snowflake.static String
HttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, org.apache.http.impl.client.CloseableHttpClient httpClient)
Deprecated.static String
HttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, org.apache.http.impl.client.CloseableHttpClient httpClient, SFBaseSession sfSession)
Executes an HTTP request for Snowflakestatic String
HttpUtil. executeGeneralRequestOmitRequestGuid(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, HttpClientSettingsKey ocspAndProxyAndGzipKey, SFBaseSession sfSession)
Object
SFStatement. executeHelper(String sql, String mediaType, Map<String,ParameterBindingDTO> bindValues, boolean describeOnly, boolean internal, boolean asyncExec, ExecTimeTelemetryData execTimeData)
A helper method to build URL and submit the SQL to snowflake for execstatic String
HttpUtil. executeRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean includeRetryParameters, boolean retryOnHTTP403, HttpClientSettingsKey ocspAndProxyKey, ExecTimeTelemetryData execTimeData)
Deprecated.static String
HttpUtil. executeRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean includeRetryParameters, boolean retryOnHTTP403, HttpClientSettingsKey ocspAndProxyKey, ExecTimeTelemetryData execTimeData, SFBaseSession sfSession)
Executes an HTTP request for Snowflake.static String
HttpUtil. executeRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean includeRetryParameters, boolean retryOnHTTP403, HttpClientSettingsKey ocspAndProxyKey, ExecTimeTelemetryData execTimeData, RetryContextManager retryContextManager)
Deprecated.static String
HttpUtil. executeRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean includeRetryParameters, boolean retryOnHTTP403, HttpClientSettingsKey ocspAndProxyKey, ExecTimeTelemetryData execTimeData, RetryContextManager retryContextManager, SFBaseSession sfSession)
Executes an HTTP request for Snowflake.HttpClientSettingsKey
SFBaseSession. getHttpClientKey()
Get the http client keySnowflakeResultChunk
ChunkDownloader. getNextChunkToConsume()
Get next SnowflakeResultChunk that is ready to be consumed by the main thread.OCSPMode
SFBaseSession. getOCSPMode()
Get OCSP modeprotected static String
StmtUtil. getQueryResult(com.fasterxml.jackson.databind.JsonNode inProgressResponse, String previousGetResultPath, net.snowflake.client.core.StmtUtil.StmtInput stmtInput)
Deprecated.protected static String
StmtUtil. getQueryResult(com.fasterxml.jackson.databind.JsonNode inProgressResponse, String previousGetResultPath, net.snowflake.client.core.StmtUtil.StmtInput stmtInput, SFBaseSession sfSession)
Issue get-result call to get query result given an in-progress response.protected static String
StmtUtil. getQueryResult(String getResultPath, net.snowflake.client.core.StmtUtil.StmtInput stmtInput)
Deprecated.protected static String
StmtUtil. getQueryResult(String getResultPath, net.snowflake.client.core.StmtUtil.StmtInput stmtInput, SFBaseSession sfSession)
Issue get-result call to get query result given an in-progress response.protected static com.fasterxml.jackson.databind.JsonNode
StmtUtil. getQueryResultJSON(String queryId, SFSession session)
Issue get-result call to get query result given an in progress response.boolean
SFArrowResultSet. next()
Advance to next rowboolean
SFBaseResultSet. next()
boolean
SFResultSet. next()
Advance to next rowvoid
SFSession. open()
Open a new database sessionstatic void
HttpUtil. setSessionlessProxyForAzure(Properties proxyProperties, com.microsoft.azure.storage.OperationContext opContext)
A static function to set Azure proxy params for sessionless connections using the proxy params from the StageInfostatic void
HttpUtil. setSessionlessProxyForS3(Properties proxyProperties, com.amazonaws.ClientConfiguration clientConfig)
Deprecated.Constructors in net.snowflake.client.core that throw SnowflakeSQLException Constructor Description SFFixedViewResultSet(SnowflakeFixedView fixedView, SFBaseFileTransferAgent.CommandType commandType, String queryID)
-
Uses of SnowflakeSQLException in net.snowflake.client.core.arrow
Methods in net.snowflake.client.core.arrow that throw SnowflakeSQLException Modifier and Type Method Description static ArrowVectorConverter
ArrowVectorConverterUtil. initConverter(org.apache.arrow.vector.FieldVector vector, DataConversionContext context, int columnIndex)
static ArrowVectorConverter
ArrowVectorConverterUtil. initConverter(org.apache.arrow.vector.ValueVector vector, DataConversionContext context, SFBaseSession session, int idx)
Given an arrow vector (a single column in a single record batch), return an arrow vector converter. -
Uses of SnowflakeSQLException in net.snowflake.client.jdbc
Subclasses of SnowflakeSQLException in net.snowflake.client.jdbc Modifier and Type Class Description class
SnowflakeReauthenticationRequest
SnowflakeReauthenticationRequest signals the reauthentication used for SSOclass
SnowflakeSQLLoggedException
This SnowflakeSQLLoggedException class extends the SnowflakeSQLException class to add OOB telemetry data for sql exceptions.Method parameters in net.snowflake.client.jdbc with type arguments of type SnowflakeSQLException Modifier and Type Method Description RetryContextManager
RetryContextManager. registerRetryCallback(ThrowingBiFunction<org.apache.http.client.methods.HttpRequestBase,RetryContext,RetryContext,SnowflakeSQLException> callback)
Registers a retry callback that will be executed on each retry.Methods in net.snowflake.client.jdbc that throw SnowflakeSQLException Modifier and Type Method Description void
JsonResultChunk. addByte(byte b, int pos)
void
JsonResultChunk. addBytes(byte[] src, int offset, int pos, int length)
void
JsonResultChunk. addOffset(int offset)
void
JsonResultChunk. addRow(Object[] row)
static void
SnowflakeUtil. checkErrorAndThrowException(com.fasterxml.jackson.databind.JsonNode rootNode)
static void
SnowflakeUtil. checkErrorAndThrowExceptionIncludingReauth(com.fasterxml.jackson.databind.JsonNode rootNode)
int
ResultJsonParserV2. continueParsing(ByteBuffer in, SFBaseSession session)
Continue parsing with the given datastatic HttpClientSettingsKey
SnowflakeUtil. convertProxyPropertiesToHttpClientKey(OCSPMode mode, Properties info)
Setup JDBC proxy properties if necessary.static SnowflakeResultSetSerializableV1
SnowflakeResultSetSerializableV1. create(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement)
A factory function to create SnowflakeResultSetSerializable object from result JSON node, using the DefaultResultStreamProvider.static SnowflakeResultSetSerializableV1
SnowflakeResultSetSerializableV1. create(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement, ResultStreamProvider resultStreamProvider)
A factory function to create SnowflakeResultSetSerializable object from result JSON node, with an overridable ResultStreamProvider.static SnowflakeResultSetSerializableV1
SnowflakeResultSetSerializableV1. createWithChunksPrefetchDisabled(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement)
A factory function for internal usage only.static SnowflakeRichResultSetSerializableV1
SnowflakeRichResultSetSerializableV1. createWithChunksPrefetchDisabled(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement)
A factory function for internal usage only.abstract InputStream
SFBaseFileTransferAgent. downloadStream(String fileName)
Download data from a stage.InputStream
SnowflakeFileTransferAgent. downloadStream(String fileName)
Download a file from remote, and return an input streamvoid
ResultJsonParserV2. endParsing(ByteBuffer in, SFBaseSession session)
Check if the chunk has been parsed correctly.void
JsonResultChunk. ensureRowsComplete()
Checks that all data has been added after parsing.static org.apache.http.client.methods.CloseableHttpResponse
RestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, boolean noRetry, ExecTimeTelemetryData execTimeData)
Deprecated.static org.apache.http.client.methods.CloseableHttpResponse
RestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, boolean noRetry, ExecTimeTelemetryData execTimeData, SFBaseSession sfSession)
Execute an HTTP request with retry logic.static org.apache.http.client.methods.CloseableHttpResponse
RestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, boolean noRetry, ExecTimeTelemetryData execTimeData, RetryContextManager retryManager)
Deprecated.static org.apache.http.client.methods.CloseableHttpResponse
RestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, boolean noRetry, ExecTimeTelemetryData execTimeData, RetryContextManager retryManager, SFBaseSession sfSession, HttpClientSettingsKey key, List<HttpHeadersCustomizer> httpHeaderCustomizer, boolean isHttpClientWithoutDecompression)
Execute an HTTP request with retry logic.static org.apache.http.client.methods.CloseableHttpResponse
RestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, ExecTimeTelemetryData execTimeTelemetryData)
Deprecated.static org.apache.http.client.methods.CloseableHttpResponse
RestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, ExecTimeTelemetryData execTimeTelemetryData, SFBaseSession sfSession)
Execute an HTTP request with retry logic.static org.apache.http.client.methods.CloseableHttpResponse
RestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, ExecTimeTelemetryData execTimeData, RetryContextManager retryContextManager)
Deprecated.static org.apache.http.client.methods.CloseableHttpResponse
RestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, ExecTimeTelemetryData execTimeData, RetryContextManager retryContextManager, SFBaseSession sfSession)
Execute an HTTP request with retry logic.void
RetryContextManager. executeRetryCallbacks(org.apache.http.client.methods.HttpRequestBase requestToRetry)
Executes all registered retry callbacks in the order they were added, before reattempting the operation.static HttpResponseContextDto
RestRequest. executeWithRetries(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, boolean noRetry, boolean unpackResponse, ExecTimeTelemetryData execTimeTelemetryData, SFBaseSession sfSession, HttpClientSettingsKey key, List<HttpHeadersCustomizer> httpHeaderCustomizer, boolean isHttpClientWithoutDecompression)
Execute an HTTP request with retry logic.static HttpResponseContextDto
RestRequest. executeWithRetries(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeRequestGuid, boolean retryHTTP403, boolean unpackResponse, ExecTimeTelemetryData execTimeTelemetryData, SFBaseSession sfSession, HttpClientSettingsKey key, List<HttpHeadersCustomizer> httpHeaderCustomizer, boolean isHttpClientWithoutDecompression)
Execute an HTTP request with retry logic.static HttpResponseContextDto
RestRequest. executeWithRetries(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, HttpExecutingContext httpExecutingContext, ExecTimeTelemetryData execTimeData, RetryContextManager retryManager, HttpClientSettingsKey key, List<HttpHeadersCustomizer> httpHeaderCustomizer, boolean isHttpClientWithoutDecompression)
Execute an HTTP request with retry logic.static SnowflakeColumnMetadata
SnowflakeUtil. extractColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode, boolean jdbcTreatDecimalAsInt, SFBaseSession session)
Deprecated.byte
JsonResultChunk. get(int offset)
SFBaseFileTransferAgent
DefaultSFConnectionHandler. getFileTransferAgent(String command, SFBaseStatement statement)
SFBaseFileTransferAgent
SFConnectionHandler. getFileTransferAgent(String command, SFBaseStatement statement)
List<SnowflakeFileTransferMetadata>
SnowflakeFileTransferAgent. getFileTransferMetadatas()
This is API function to retrieve the File Transfer Metadatas.static List<SnowflakeFileTransferMetadata>
SnowflakeFileTransferAgent. getFileTransferMetadatas(com.fasterxml.jackson.databind.JsonNode jsonNode)
This is API function to parse the File Transfer Metadatas from a supplied PUT call response.static List<SnowflakeFileTransferMetadata>
SnowflakeFileTransferAgent. getFileTransferMetadatas(com.fasterxml.jackson.databind.JsonNode jsonNode, String queryId)
This is API function to parse the File Transfer Metadatas from a supplied PUT call response.SnowflakeResultChunk
SnowflakeChunkDownloader. getNextChunkToConsume()
The method does the following:SnowflakeResultChunk
SnowflakeChunkDownloader.NoOpChunkDownloader. getNextChunkToConsume()
Object
SnowflakeFileTransferAgent. getResultSet()
SFSession
SnowflakeConnectionV1. getSfSession()
static SnowflakeType
SnowflakeType. javaTypeToSFType(int javaType, SFBaseSession session)
static SnowflakeType
SnowflakeUtil. javaTypeToSFType(int javaType, SFBaseSession session)
void
ArrowResultChunk. mergeBatchesIntoOne()
merge arrow result chunk with more than one batches into one record batch (Only used for the first chunk when client side sorting is required)boolean
ArrowResultChunk.ArrowChunkIterator. next()
Advance to next row.void
JsonResultChunk. nextIndex()
static void
SnowflakeFileTransferAgent. renewExpiredToken(SFSession session, String command, SnowflakeStorageClient client)
This static method is called when we are handling an expired token exception It retrieves a fresh token from GS and then calls .renew() on the storage client to refresh itself with the new tokenvoid
JsonResultChunk. setIsNull()
void
JsonResultChunk. setLastLength(int len)
void
ResultJsonParserV2. startParsing(JsonResultChunk resultChunk, SFBaseSession session)
static void
SnowflakeFileTransferAgent. throwJCEMissingError(String operation, Exception ex)
static void
SnowflakeFileTransferAgent. throwJCEMissingError(String operation, Exception ex, String queryId)
Handles an InvalidKeyException which indicates that the JCE component is not installed properlyConstructors in net.snowflake.client.jdbc that throw SnowflakeSQLException Constructor Description SnowflakeChunkDownloader(SnowflakeResultSetSerializableV1 resultSetSerializable)
Constructor to initialize downloader, which uses the default stream providerSnowflakeFileTransferAgent(String command, SFSession session, SFStatement statement)
SnowflakeResultSetSerializableV1(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement, ResultStreamProvider resultStreamProvider, boolean disableChunksPrefetch)
-
Uses of SnowflakeSQLException in net.snowflake.client.jdbc.cloud.storage
Methods in net.snowflake.client.jdbc.cloud.storage that throw SnowflakeSQLException Modifier and Type Method Description SnowflakeStorageClient
StorageClientFactory. createClient(StageInfo stage, int parallel, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, SFSession session)
Creates a storage client based on the value of stageLocationTypestatic SnowflakeAzureClient
SnowflakeAzureClient. createSnowflakeAzureClient(StageInfo stage, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, SFBaseSession sfSession)
static SnowflakeGCSClient
SnowflakeGCSClient. createSnowflakeGCSClient(StageInfo stage, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, SFSession session)
void
SnowflakeAzureClient. download(SFSession session, String command, String localLocation, String destFileName, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl, String queryId)
Download a file from remote storage.void
SnowflakeGCSClient. download(SFSession session, String command, String localLocation, String destFileName, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl, String queryId)
Download a file from remote storage.void
SnowflakeS3Client. download(SFSession session, String command, String localLocation, String destFileName, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl, String queryId)
Download a file from S3.default void
SnowflakeStorageClient. download(SFSession connection, String command, String localLocation, String destFileName, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)
void
SnowflakeStorageClient. download(SFSession connection, String command, String localLocation, String destFileName, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl, String queryId)
Download a file from remote storage.InputStream
SnowflakeAzureClient. downloadToStream(SFSession session, String command, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl, String queryId)
Download a file from remote storageInputStream
SnowflakeGCSClient. downloadToStream(SFSession session, String command, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl, String queryId)
Download a file from remote storageInputStream
SnowflakeS3Client. downloadToStream(SFSession session, String command, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl, String queryId)
Download a file from remote storagedefault InputStream
SnowflakeStorageClient. downloadToStream(SFSession connection, String command, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)
InputStream
SnowflakeStorageClient. downloadToStream(SFSession connection, String command, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl, String queryId)
Download a file from remote storagevoid
SnowflakeAzureClient. handleStorageException(Exception ex, int retryCount, String operation, SFSession session, String command, String queryId)
Handles exceptions thrown by Azure Storagevoid
SnowflakeGCSClient. handleStorageException(Exception ex, int retryCount, String operation, SFSession session, String command, String queryId)
void
SnowflakeS3Client. handleStorageException(Exception ex, int retryCount, String operation, SFSession session, String command, String queryId)
default void
SnowflakeStorageClient. handleStorageException(Exception ex, int retryCount, String operation, SFSession connection, String command)
void
SnowflakeStorageClient. handleStorageException(Exception ex, int retryCount, String operation, SFSession connection, String command, String queryId)
Handles exceptions thrown by the remote storage providervoid
SnowflakeAzureClient. renew(Map<?,?> stageCredentials)
Re-creates the encapsulated storage client with a fresh access tokenvoid
SnowflakeGCSClient. renew(Map<?,?> stageCredentials)
void
SnowflakeS3Client. renew(Map<?,?> stageCredentials)
Renew the S3 client with fresh AWS credentials/access tokenvoid
SnowflakeStorageClient. renew(Map<?,?> stageCredentials)
Re-creates the encapsulated storage client with a fresh access tokenstatic void
S3HttpUtil. setSessionlessProxyForS3(Properties proxyProperties, com.amazonaws.ClientConfiguration clientConfig)
A static function to set S3 proxy params for sessionless connections using the proxy params from the StageInfovoid
SnowflakeAzureClient. upload(SFSession session, String command, int parallelism, boolean uploadFromStream, String remoteStorageLocation, File srcFile, String destFileName, InputStream inputStream, FileBackedOutputStream fileBackedOutputStream, StorageObjectMetadata meta, String stageRegion, String presignedUrl, String queryId)
Upload a file/stream to remote storagevoid
SnowflakeGCSClient. upload(SFSession session, String command, int parallelism, boolean uploadFromStream, String remoteStorageLocation, File srcFile, String destFileName, InputStream inputStream, FileBackedOutputStream fileBackedOutputStream, StorageObjectMetadata meta, String stageRegion, String presignedUrl, String queryId)
Upload a file/stream to remote storagevoid
SnowflakeS3Client. upload(SFSession session, String command, int parallelism, boolean uploadFromStream, String remoteStorageLocation, File srcFile, String destFileName, InputStream inputStream, FileBackedOutputStream fileBackedOutputStream, StorageObjectMetadata meta, String stageRegion, String presignedUrl, String queryId)
Upload a file (-stream) to S3.default void
SnowflakeStorageClient. upload(SFSession connection, String command, int parallelism, boolean uploadFromStream, String remoteStorageLocation, File srcFile, String destFileName, InputStream inputStream, FileBackedOutputStream fileBackedOutputStream, StorageObjectMetadata meta, String stageRegion, String presignedUrl)
void
SnowflakeStorageClient. upload(SFSession connection, String command, int parallelism, boolean uploadFromStream, String remoteStorageLocation, File srcFile, String destFileName, InputStream inputStream, FileBackedOutputStream fileBackedOutputStream, StorageObjectMetadata meta, String stageRegion, String presignedUrl, String queryId)
Upload a file (-stream) to remote storagevoid
SnowflakeGCSClient. uploadWithPresignedUrlWithoutConnection(int networkTimeoutInMilli, HttpClientSettingsKey ocspModeAndProxyKey, int parallelism, boolean uploadFromStream, String remoteStorageLocation, File srcFile, String destFileName, InputStream inputStream, FileBackedOutputStream fileBackedOutputStream, StorageObjectMetadata meta, String stageRegion, String presignedUrl, String queryId)
Upload a file (-stream) to remote storage with Pre-signed URL without JDBC session.default void
SnowflakeStorageClient. uploadWithPresignedUrlWithoutConnection(int networkTimeoutInMilli, HttpClientSettingsKey ocspModeAndProxyKey, int parallelism, boolean uploadFromStream, String remoteStorageLocation, File srcFile, String destFileName, InputStream inputStream, FileBackedOutputStream fileBackedOutputStream, StorageObjectMetadata meta, String stageRegion, String presignedUrl)
Deprecated.useSnowflakeStorageClient.uploadWithPresignedUrlWithoutConnection(int, HttpClientSettingsKey, int, boolean, String, File, String, InputStream, FileBackedOutputStream, StorageObjectMetadata, String, String, String)
This method was left to keep backward compatibilitydefault void
SnowflakeStorageClient. uploadWithPresignedUrlWithoutConnection(int networkTimeoutInMilli, HttpClientSettingsKey ocspModeAndProxyKey, int parallelism, boolean uploadFromStream, String remoteStorageLocation, File srcFile, String destFileName, InputStream inputStream, FileBackedOutputStream fileBackedOutputStream, StorageObjectMetadata meta, String stageRegion, String presignedUrl, String queryId)
Upload a file (-stream) to remote storage with Pre-signed URL without JDBC connection.Constructors in net.snowflake.client.jdbc.cloud.storage that throw SnowflakeSQLException Constructor Description SnowflakeS3Client(Map<?,?> stageCredentials, com.amazonaws.ClientConfiguration clientConfig, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, Properties proxyProperties, String stageRegion, String stageEndPoint, boolean isClientSideEncrypted, SFBaseSession session, boolean useS3RegionalUrl)
-