-
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: prototype support for IMPORT INTO
This adds a prototype of incremental IMPORT, allowing importing CSV data into an existing table as opposed to only into as new table with current IMPORT. Unlike traditional IMPORT which takes a specification of the table to create, this takes a reference to an existing table into which it will import data. Initially only CSV data, importing into a single table, is supported (the SQL dumpfiles are typically dumps of an entire table so it seems likess likely that we need to support them here for now). Since the actual bulk ingestion is done via non-transactional AddSSTable commands, the table must be taken offline during ingestion. The IMPORT job begins by schema-changing the table to an offline 'IMPORTING' state that should prevent leasing it and moves it back to public when it finishes (on success or failure, unlike a newly table created table which is usually rolled back via a drop on failure). Release note: none.
- Loading branch information
Showing
2 changed files
with
169 additions
and
124 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