-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DR-3038] Fix Azure Synapse Querying #1478
Changes from 2 commits
6ae8a0b
47d3df0
7635036
61ae13b
cf8473b
8f441ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While looking at this file I noticed
Which is incorrect;
or it could pass the exception in:
(Although I doubt the value of these log statements as I don't think anything is looking at the log outputs to monitor for these messages, so they won't be acted upon.) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -407,11 +407,11 @@ public void performIngest( | |
// 3 - Retrieve info about database schema so that we can populate the parquet create query | ||
String tableName = destinationTable.getName(); | ||
String destinationParquetFile = | ||
FolderType.METADATA.getPath("parquet/" + tableName + "/" + ingestFlightId + ".parquet"); | ||
FolderType.METADATA.getPath(IngestUtils.getParquetFilePath(tableName, ingestFlightId)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice, thanks for refactoring out to call the existing utility method! |
||
|
||
String scratchParquetFile = | ||
FolderType.SCRATCH.getPath( | ||
"parquet/" + SCRATCH_TABLE_NAME_PREFIX + tableName + "/" + ingestFlightId + ".parquet"); | ||
IngestUtils.getParquetFilePath(SCRATCH_TABLE_NAME_PREFIX + tableName, ingestFlightId)); | ||
|
||
// 4 - Create parquet files via external table | ||
// All inputs should be sanitized before passed into this method | ||
|
@@ -492,7 +492,11 @@ public DatasetTable ingestIntoAllDataTypesTable( | |
|
||
String scratchParquetFile = | ||
FolderType.SCRATCH.getPath( | ||
"parquet/scratch_" + destinationTable.getName() + "/" + randomFlightId + ".parquet"); | ||
"parquet/scratch_" | ||
+ destinationTable.getName() | ||
+ "/flight" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be |
||
+ randomFlightId | ||
+ ".parquet"); | ||
addParquetFileName(scratchParquetFile, datasetStorageAccountResource); | ||
addParquetFileName( | ||
IngestUtils.getParquetFilePath(destinationTable.getName(), randomFlightId), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to create a constant for
parquet/
too? It's used four times in this file.