-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SNOW-909180: Pass query id in exceptions from file agent (#1581)
- Loading branch information
1 parent
301005e
commit 55e5b15
Showing
16 changed files
with
787 additions
and
180 deletions.
There are no files selected for viewing
309 changes: 259 additions & 50 deletions
309
src/main/java/net/snowflake/client/jdbc/SnowflakeFileTransferAgent.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/net/snowflake/client/jdbc/cloud/storage/QueryIdHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright (c) 2023 Snowflake Computing Inc. All rights reserved. | ||
*/ | ||
package net.snowflake.client.jdbc.cloud.storage; | ||
|
||
import net.snowflake.common.core.RemoteStoreFileEncryptionMaterial; | ||
|
||
class QueryIdHelper { | ||
static String queryIdFromEncMatOr(RemoteStoreFileEncryptionMaterial encMat, String queryId) { | ||
return encMat != null && encMat.getQueryId() != null ? encMat.getQueryId() : queryId; | ||
} | ||
} |
Oops, something went wrong.