forked from delta-io/delta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[delta-standalone] Add check that schema contains partition columns (d…
…elta-io#353) * add partition cols check to OptTxn; new tests pass; 68 old existing standaloen tests fail * num failing tests reduced from 68 to 59 * num failing tests reduced from 59 to 48 * num failing tests reduced from 48 to 31 * num failing tests reduced from 31 to 25 * all delta standalone tests pass * fix compatibility tests * Fix Sink test after regenerating test/resources partitioned table (delta-io#46) * KC_fix_schema_contains_partition_cols_check - Fix Sink test after regenerating test/resource partitioned table to one that includes partition columns in Delta Schema Signed-off-by: Krzysztof Chmielewski <krzysztof.chmielewski@getindata.com> * KC_fix_schema_contains_partition_cols_check - code cleanup. Signed-off-by: Krzysztof Chmielewski <krzysztof.chmielewski@getindata.com> * Fix compilation issue * Update missing partitions cols algorithm and error message to show all missing cols * respond to PR feedback * fix typo * update test * Add comments to make test case more clear Co-authored-by: kristoffSC <krzysiek.chmielewski@gmail.com>
- Loading branch information
1 parent
9a5459d
commit 42e0238
Showing
25 changed files
with
256 additions
and
96 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
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
7 changes: 3 additions & 4 deletions
7
...test-data/test-partitioned-delta-table-initial-state/_delta_log/00000000000000000000.json
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,5 +1,4 @@ | ||
{"commitInfo":{"timestamp":1635285930717,"operation":"STREAMING UPDATE","isolationLevel":"Serializable","isBlindAppend":true,"operationMetrics":{"numOutputRows":"2","numAddedFiles":"2","numOutputBytes":"1726","numRemovedFiles":"0"},"engineInfo":"flink.1.12 Delta Standalone/0.2.1-SNAPSHOT"}} | ||
{"commitInfo":{"timestamp":1653946642277,"operation":"WRITE","operationParameters":{"mode":"Append","partitionBy":"[\"col1\",\"col2\"]"},"isBlindAppend":true,"operationMetrics":{"numFiles":"1","numOutputBytes":"873","numOutputRows":"2"}}} | ||
{"protocol":{"minReaderVersion":1,"minWriterVersion":2}} | ||
{"metaData":{"id":"14651129-76c2-48eb-86a0-f52f88b5aab2","format":{"provider":"parquet","options":{}},"schemaString":"{\"type\":\"struct\",\"fields\":[{\"name\":\"name\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"surname\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"age\",\"type\":\"integer\",\"nullable\":true,\"metadata\":{}}]}","partitionColumns":["col1","col2"],"configuration":{},"createdTime":1632772157770}} | ||
{"add":{"path":"col1=val1/col2=val2/part-00000-0561acbc-6d81-43b5-8683-6d442547151e-c000.snappy.parquet","partitionValues":{"col1":"val1","col2":"val2"},"size":882,"modificationTime":1632772158982,"dataChange":true}} | ||
{"add":{"path":"col1=val1/col2=val2/part-00001-e6758bba-2d53-49f7-8bc2-b8e24d0e30e5-c000.snappy.parquet","partitionValues":{"col1":"val1","col2":"val2"},"size":844,"modificationTime":1632772158982,"dataChange":true}} | ||
{"metaData":{"id":"e5ec0a0b-186b-4af8-8b64-f5eb808981e1","format":{"provider":"parquet","options":{}},"schemaString":"{\"type\":\"struct\",\"fields\":[{\"name\":\"name\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"surname\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"age\",\"type\":\"integer\",\"nullable\":true,\"metadata\":{}},{\"name\":\"col1\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"col2\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}}]}","partitionColumns":["col1","col2"],"configuration":{},"createdTime":1653946639728}} | ||
{"add":{"path":"col1=val1/col2=val2/part-00000-bda8015b-74e7-4a29-afe7-9d6c77f3a7ae.c000.snappy.parquet","partitionValues":{"col1":"val1","col2":"val2"},"size":873,"modificationTime":1653946642197,"dataChange":true}} |
Binary file removed
BIN
-882 Bytes
...e/col1=val1/col2=val2/part-00000-0561acbc-6d81-43b5-8683-6d442547151e-c000.snappy.parquet
Binary file not shown.
Binary file added
BIN
+873 Bytes
...e/col1=val1/col2=val2/part-00000-bda8015b-74e7-4a29-afe7-9d6c77f3a7ae.c000.snappy.parquet
Binary file not shown.
Binary file removed
BIN
-844 Bytes
...e/col1=val1/col2=val2/part-00001-e6758bba-2d53-49f7-8bc2-b8e24d0e30e5-c000.snappy.parquet
Binary file not shown.
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
Oops, something went wrong.