-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add automate column addition based on query. (#56)
* feat: add automate column addition based on query. Co-authored-by: Ramadhan Putra <[email protected]> * fix and add some test case Co-authored-by: Teguh Riadi <[email protected]> Co-authored-by: Ramadhan Putra <[email protected]>
- Loading branch information
1 parent
f91bd46
commit c325b86
Showing
9 changed files
with
131 additions
and
25 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
13 changes: 13 additions & 0 deletions
13
task/bq2bq/executor/samples/tasks/allow_field_addition/basic/properties.cfg
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,13 @@ | ||
[DESTINATION] | ||
PROJECT="g-data-gojek-id-mart" | ||
DATASET="playground" | ||
TABLE="allow_field_addition_test" | ||
|
||
[TRANSFORMATION] | ||
WINDOW_SIZE = 720h | ||
WINDOW_OFFSET = 0 | ||
WINDOW_TRUNCATE_UPTO = M | ||
|
||
[LOAD] | ||
LOAD_METHOD="REPLACE" | ||
ALLOW_FIELD_ADDITION=TRUE |
6 changes: 6 additions & 0 deletions
6
task/bq2bq/executor/samples/tasks/allow_field_addition/basic/query.sql
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,6 @@ | ||
select | ||
"hakai" as hakai, | ||
"rasengan" as rasengan, | ||
"over" as overs, | ||
"allow_field_addition" as test_column, | ||
TIMESTAMP ('2021-09-01T01:02:03') as `event_timestamp` |
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