-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
177 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.22.0" | ||
__version__ = "0.22.1" |
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,3 @@ | ||
type: AVRO | ||
format_options: | ||
compression: ZSTD |
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 @@ | ||
copy: | ||
table: pi001_tb1 | ||
stage: pi001_st1 | ||
pattern: ".*[.]csv" | ||
|
||
auto_ingest: false | ||
|
||
comment: abc |
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,16 @@ | ||
copy: | ||
table: pi002_tb1 | ||
stage: pi002_st1 | ||
|
||
path: /abc/cde | ||
file_format: pi002_ff1 | ||
|
||
transform: | ||
id: "GET($1, 'id')" | ||
name: "GET($1, 'name')" | ||
|
||
options: | ||
ON_ERROR: CONTINUE | ||
ENFORCE_LENGTH: true | ||
|
||
auto_ingest: false |
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,2 @@ | ||
url: gcs://test-bucket1 | ||
storage_integration: test_storage_integration |
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,2 @@ | ||
url: gcs://test-bucket1 | ||
storage_integration: test_storage_integration |
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,3 @@ | ||
columns: | ||
id: NUMBER(38,0) | ||
name: VARCHAR(255) |
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,3 @@ | ||
columns: | ||
id: NUMBER(38,0) | ||
name: VARCHAR(255) |
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,3 @@ | ||
type: AVRO | ||
format_options: | ||
compression: ZSTD |
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,9 @@ | ||
copy: | ||
table: pi001_tb1 | ||
stage: pi001_st1 | ||
pattern: ".*[.]csv[.]gz" | ||
|
||
auto_ingest: false | ||
error_integration: test_notification_integration | ||
|
||
comment: cde |
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,16 @@ | ||
copy: | ||
table: pi002_tb1 | ||
stage: pi002_st1 | ||
|
||
path: /abc/cde/fgh | ||
file_format: pi002_ff1 | ||
|
||
transform: | ||
id: "GET($1, 'id')" | ||
name: "GET($1, 'another_name')" | ||
|
||
options: | ||
ON_ERROR: SKIP_FILE | ||
ENFORCE_LENGTH: false | ||
|
||
auto_ingest: false |
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,2 @@ | ||
url: gcs://test-bucket1 | ||
storage_integration: test_storage_integration |
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,2 @@ | ||
url: gcs://test-bucket1 | ||
storage_integration: test_storage_integration |
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,3 @@ | ||
columns: | ||
id: NUMBER(38,0) | ||
name: VARCHAR(255) |
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,3 @@ | ||
columns: | ||
id: NUMBER(38,0) | ||
name: VARCHAR(255) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
def test_step1(helper): | ||
pipe_show = helper.show_pipe("db1", "sc1", "pi001_pi1") | ||
|
||
assert "PI001_TB1" in pipe_show["definition"] | ||
assert "PI001_ST1" in pipe_show["definition"] | ||
|
||
assert pipe_show["error_integration"] is None | ||
assert pipe_show["pattern"] == ".*[.]csv" | ||
|
||
assert pipe_show["comment"].startswith("abc #") | ||
|
||
|
||
def test_step2(helper): | ||
pipe_show = helper.show_pipe("db1", "sc1", "pi001_pi1") | ||
|
||
assert "PI001_TB1" in pipe_show["definition"] | ||
assert "PI001_ST1" in pipe_show["definition"] | ||
|
||
assert pipe_show["error_integration"] == "TEST_NOTIFICATION_INTEGRATION" | ||
assert pipe_show["pattern"] == ".*[.]csv[.]gz" | ||
|
||
assert pipe_show["comment"].startswith("cde #") | ||
|
||
|
||
def test_step3(helper): | ||
pipe_show = helper.show_pipe("db1", "sc1", "pi001_pi1") | ||
|
||
assert pipe_show is None |
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,26 @@ | ||
def test_step1(helper): | ||
pipe_show = helper.show_pipe("db1", "sc1", "pi002_pi1") | ||
|
||
assert "PI002_TB1" in pipe_show["definition"] | ||
assert "PI002_ST1" in pipe_show["definition"] | ||
assert "PI002_FF1" in pipe_show["definition"] | ||
|
||
assert "\"/abc/cde" in pipe_show["definition"] | ||
assert "ENFORCE_LENGTH = TRUE" in pipe_show["definition"] | ||
|
||
|
||
def test_step2(helper): | ||
pipe_show = helper.show_pipe("db1", "sc1", "pi002_pi1") | ||
|
||
assert "PI002_TB1" in pipe_show["definition"] | ||
assert "PI002_ST1" in pipe_show["definition"] | ||
assert "PI002_FF1" in pipe_show["definition"] | ||
|
||
assert "\"/abc/cde/fgh" in pipe_show["definition"] | ||
assert "ENFORCE_LENGTH = FALSE" in pipe_show["definition"] | ||
|
||
|
||
def test_step3(helper): | ||
pipe_show = helper.show_pipe("db1", "sc1", "pi002_pi1") | ||
|
||
assert pipe_show is None |