-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Destination snowflake: mostly done implementations for sqlgenerator+d…
…estinationhandler (#28677) * csv sheet generator supports 1s1t * create+insert raw tables 1s1t * add skeletons * start writing tests * progress in creating raw tables * fix tests * add s3 test; better csv generation * handle case-sensitive column names * also add gcs test * hook T+D into the destination * fix redshift; simplify * Delete unused files? * disable test; enable cleanup * initialize config singleton in tests * logistics * header * simplify * fix unit tests * correctly disable tests * use default null for loaded_at * fix test * autoformat * cython >.> * more singleton init * literally how? * basic destinationhandler impl * use raw string for type >.> * add toDialectType * basic createTable impl * better sql query * comment * unused variables * recorddiffer can be case-sensitive * misc fixes * add expected_records * move constants to base-java * use ternary * fix tests * resolve todo * T+D can trigger on first commit * fix test teardown * implement softReset * implement overwriteFinalTable * better type stuff; check table schema * fix * derp * implement updateTable? * derp * random wip stuff * fix insertRaw * theoretically implement stuff? * stuff * put suffix at the end * different uuids * fix expected records * move tdtest resources into dat folder * use resource files * stuff * move code around * more stuff * rename final table * stuff * cdc immediate deletion * cdcComplexUpdate * cleanup * botched rebase * more tests * move back to old file * Automated Commit - Format and Process Resources Changes * add comments * Automated Commit - Format and Process Resources Changes * fix merge * move expected_records into dat folder * wip implement sqlgenerator test * basic implementation * tons of fixes, still tons more to go * more stuff * fix more things * hacky convert temporal types to varchar * test data fix * fix variant parsing * fix number * fix time parsing; fix test data * typo * fix input data * progress * switch back to float * add more test files * swap int -> number * fix PK null check * fix overwriteTable * better test * Automated Commit - Format and Process Resources Changes * type aliases, one more test * also verify numeric precision/scale * logistics --------- Co-authored-by: edgao <edgao@users.noreply.github.com>
- Loading branch information
Showing
42 changed files
with
1,039 additions
and
72 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
2 changes: 1 addition & 1 deletion
2
...e-typing-deduping-test/src/main/resources/sqlgenerator/cdcupdate_inputrecords_final.jsonl
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{"_airbyte_raw_id": "d5790c04-52df-42f3-8f77-a543268822a7", "_airbyte_extracted_at": "2022-12-31T00:00:00Z", "_airbyte_meta": {}, "id1": 1, "id2": 100, "updated_at": "2022-12-31T00:00:00Z", "string": "spooky ghost"} | ||
{"_airbyte_raw_id": "e3b03d92-0f7c-49e5-b203-573dbb7bd1cb", "_airbyte_extracted_at": "2022-12-31T00:00:00Z", "_airbyte_meta": {}, "id1": 5, "id2": 100, "updated_at": "2022-12-31T01:00:00Z", "string": "will be deleted'"} | ||
{"_airbyte_raw_id": "e3b03d92-0f7c-49e5-b203-573dbb7bd1cb", "_airbyte_extracted_at": "2022-12-31T00:00:00Z", "_airbyte_meta": {}, "id1": 5, "id2": 100, "updated_at": "2022-12-31T01:00:00Z", "string": "will be deleted"} |
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
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
8 changes: 8 additions & 0 deletions
8
...n/java/io/airbyte/integrations/destination/snowflake/typing_deduping/SnowflakeColumn.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,8 @@ | ||
package io.airbyte.integrations.destination.snowflake.typing_deduping; | ||
|
||
/** | ||
* type is notably _not_ a {@link net.snowflake.client.jdbc.SnowflakeType}. That | ||
* enum doesn't contain all the types that snowflake supports (specifically NUMBER). | ||
*/ | ||
public record SnowflakeColumn(String name, String type) { | ||
} |
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.