Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public DatabricksSQLException(String reason, Throwable cause, String sqlState) {
this(reason, sqlState, DatabricksVendorCode.getVendorCode(cause), cause);
}

// This constructor is used to export chunk download failure logs
// TODO : Check chunk retry telemetry logic
// Chunk-download path: routes statementId + chunkIndex into the telemetry record so failures
// can be bucketed per chunk. Other constructors do not carry chunkIndex.
public DatabricksSQLException(
String reason, Throwable cause, String statementId, Long chunkIndex, String sqlState) {
super(reason, sqlState, DatabricksVendorCode.getVendorCode(cause), cause);
exportFailureLog(
DatabricksThreadContextHolder.getConnectionContext(),
DatabricksDriverErrorCode.CONNECTION_ERROR.name(),
sqlState,
reason,
statementId,
chunkIndex,
Expand Down
Loading