Uses of Class
net.snowflake.client.jdbc.SnowflakeSQLException
-
Packages that use SnowflakeSQLException Package Description net.snowflake.client.core net.snowflake.client.jdbc net.snowflake.client.jdbc.cloud.storage -
-
Uses of SnowflakeSQLException in net.snowflake.client.core
Methods in net.snowflake.client.core that throw SnowflakeSQLException Modifier and Type Method Description static voidStmtUtil. cancel(net.snowflake.client.core.StmtUtil.StmtInput stmtInput)Cancel a statement identifiable by a request idvoidSFArrowResultSet. close()voidSFBaseResultSet. close()abstract voidSFBaseSession. close()Close the connectionvoidSFFixedViewResultSet. close()voidSFResultSet. close()voidSFSession. close()Close the connectionstatic StmtUtil.StmtOutputStmtUtil. execute(net.snowflake.client.core.StmtUtil.StmtInput stmtInput, ExecTimeTelemetryData execTimeData)Execute a statementstatic StringHttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, HttpClientSettingsKey ocspAndProxyAndGzipKey)Executes a HTTP request for Snowflake.static StringHttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, org.apache.http.impl.client.CloseableHttpClient httpClient)Executes a HTTP request for SnowflakeObjectSFStatement. 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 StringHttpUtil. 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)Executes a HTTP request for Snowflake.HttpClientSettingsKeySFBaseSession. getHttpClientKey()SnowflakeResultChunkChunkDownloader. getNextChunkToConsume()Get next SnowflakeResultChunk that is ready to be consumed by the main thread.protected static StringStmtUtil. getQueryResult(com.fasterxml.jackson.databind.JsonNode inProgressResponse, String previousGetResultPath, net.snowflake.client.core.StmtUtil.StmtInput stmtInput)Issue get-result call to get query result given an in-progress response.protected static StringStmtUtil. getQueryResult(String getResultPath, net.snowflake.client.core.StmtUtil.StmtInput stmtInput)Issue get-result call to get query result given an in-progress response.protected static com.fasterxml.jackson.databind.JsonNodeStmtUtil. getQueryResultJSON(String queryId, SFSession session)Issue get-result call to get query result given an in progress response.booleanSFArrowResultSet. next()Advance to next rowbooleanSFBaseResultSet. next()booleanSFResultSet. next()Advance to next rowvoidSFSession. open()Open a new database sessionstatic voidHttpUtil. 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 voidHttpUtil. setSessionlessProxyForS3(Properties proxyProperties, com.amazonaws.ClientConfiguration clientConfig)A static function to set S3 proxy params for sessionless connections using the proxy params from the StageInfoConstructors 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.jdbc
Subclasses of SnowflakeSQLException in net.snowflake.client.jdbc Modifier and Type Class Description classSnowflakeReauthenticationRequestSnowflakeReauthenticationRequest signals the reauthentication used for SSOclassSnowflakeSQLLoggedExceptionMethods in net.snowflake.client.jdbc that throw SnowflakeSQLException Modifier and Type Method Description voidJsonResultChunk. addByte(byte b, int pos)voidJsonResultChunk. addBytes(byte[] src, int offset, int pos, int length)voidJsonResultChunk. addOffset(int offset)voidJsonResultChunk. addRow(Object[] row)static voidSnowflakeUtil. checkErrorAndThrowException(com.fasterxml.jackson.databind.JsonNode rootNode)static voidSnowflakeUtil. checkErrorAndThrowExceptionIncludingReauth(com.fasterxml.jackson.databind.JsonNode rootNode)intResultJsonParserV2. continueParsing(ByteBuffer in, SFBaseSession session)Continue parsing with the given datastatic HttpClientSettingsKeySnowflakeUtil. convertProxyPropertiesToHttpClientKey(OCSPMode mode, Properties info)Setup JDBC proxy properties if necessary.static SnowflakeResultSetSerializableV1SnowflakeResultSetSerializableV1. 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 SnowflakeResultSetSerializableV1SnowflakeResultSetSerializableV1. 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.abstract InputStreamSFBaseFileTransferAgent. downloadStream(String fileName)Download data from a stage.InputStreamSnowflakeFileTransferAgent. downloadStream(String fileName)Download a file from remote, and return an input streamvoidResultJsonParserV2. endParsing(ByteBuffer in, SFBaseSession session)Check if the chunk has been parsed correctly.voidJsonResultChunk. ensureRowsComplete()Checks that all data has been added after parsing.static org.apache.http.client.methods.CloseableHttpResponseRestRequest. 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)Execute an http request with retry logic.static org.apache.http.client.methods.CloseableHttpResponseRestRequest. 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)static SnowflakeColumnMetadataSnowflakeUtil. extractColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode, boolean jdbcTreatDecimalAsInt, SFBaseSession session)byteJsonResultChunk. get(int offset)SFBaseFileTransferAgentDefaultSFConnectionHandler. getFileTransferAgent(String command, SFBaseStatement statement)SFBaseFileTransferAgentSFConnectionHandler. 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.SnowflakeResultChunkSnowflakeChunkDownloader. getNextChunkToConsume()The method does the following:SnowflakeResultChunkSnowflakeChunkDownloader.NoOpChunkDownloader. getNextChunkToConsume()ObjectSnowflakeFileTransferAgent. getResultSet()SFSessionSnowflakeConnectionV1. getSfSession()static SnowflakeTypeSnowflakeType. javaTypeToSFType(int javaType, SFBaseSession session)voidArrowResultChunk. 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)booleanArrowResultChunk.ArrowChunkIterator. next()advance to next rowvoidJsonResultChunk. nextIndex()static voidSnowflakeFileTransferAgent. 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 tokenvoidJsonResultChunk. setIsNull()voidJsonResultChunk. setLastLength(int len)voidResultJsonParserV2. startParsing(JsonResultChunk resultChunk, SFBaseSession session)static voidSnowflakeFileTransferAgent. throwJCEMissingError(String operation, Exception ex)Constructors 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) -
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 SnowflakeStorageClientStorageClientFactory. createClient(StageInfo stage, int parallel, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, SFSession session)Creates a storage client based on the value of stageLocationTypestatic SnowflakeAzureClientSnowflakeAzureClient. createSnowflakeAzureClient(StageInfo stage, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, SFBaseSession sfSession)static SnowflakeGCSClientSnowflakeGCSClient. createSnowflakeGCSClient(StageInfo stage, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, SFSession session)voidSnowflakeAzureClient. download(SFSession session, String command, String localLocation, String destFileName, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)Download a file from remote storage.voidSnowflakeGCSClient. download(SFSession session, String command, String localLocation, String destFileName, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)Download a file from remote storage.voidSnowflakeS3Client. download(SFSession session, String command, String localLocation, String destFileName, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)Download a file from S3.voidSnowflakeStorageClient. download(SFSession connection, String command, String localLocation, String destFileName, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)Download a file from remote storage.InputStreamSnowflakeAzureClient. downloadToStream(SFSession session, String command, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)Download a file from remote storageInputStreamSnowflakeGCSClient. downloadToStream(SFSession session, String command, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)Download a file from remote storageInputStreamSnowflakeS3Client. downloadToStream(SFSession session, String command, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)Download a file from remote storageInputStreamSnowflakeStorageClient. downloadToStream(SFSession connection, String command, int parallelism, String remoteStorageLocation, String stageFilePath, String stageRegion, String presignedUrl)Download a file from remote storagevoidSnowflakeAzureClient. handleStorageException(Exception ex, int retryCount, String operation, SFSession session, String command)Handles exceptions thrown by Azure StoragevoidSnowflakeGCSClient. handleStorageException(Exception ex, int retryCount, String operation, SFSession session, String command)voidSnowflakeS3Client. handleStorageException(Exception ex, int retryCount, String operation, SFSession session, String command)voidSnowflakeStorageClient. handleStorageException(Exception ex, int retryCount, String operation, SFSession connection, String command)Handles exceptions thrown by the remote storage providervoidSnowflakeAzureClient. renew(Map<?,?> stageCredentials)Re-creates the encapsulated storage client with a fresh access tokenvoidSnowflakeGCSClient. renew(Map<?,?> stageCredentials)voidSnowflakeS3Client. renew(Map<?,?> stageCredentials)Renew the S3 client with fresh AWS credentials/access tokenvoidSnowflakeStorageClient. renew(Map<?,?> stageCredentials)Re-creates the encapsulated storage client with a fresh access tokenvoidSnowflakeAzureClient. 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)Upload a file/stream to remote storagevoidSnowflakeGCSClient. 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)Upload a file/stream to remote storagevoidSnowflakeS3Client. 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)Upload a file (-stream) to S3.voidSnowflakeStorageClient. 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)Upload a file (-stream) to remote storagevoidSnowflakeGCSClient. 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)Upload a file (-stream) to remote storage with Pre-signed URL without JDBC session.default voidSnowflakeStorageClient. 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)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)
-