-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
importccl: Modify row_id generation for IMPORT from CSV.
This change was motivated by a bug in which consecutive IMPORT INTO queries into a table without an explicit PK, and from unique data sources would overwrite instead of appending data. This is because row_id generation was based on fileIndex and rowNum which created colliding PKs across query runs. To fix this we add the timestamp at which IMPORT INTO is run at a 10-microsecond granularity to the rowNum. Release note: None
- Loading branch information
1 parent
1b934a6
commit 318d98d
Showing
5 changed files
with
59 additions
and
337 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.