-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DAT-17410] enable test-harness (#279)
* downgraded parent pom, added groovy and spock explicitly * wip * enabled tests, need more work * reverted unneeded changes * removed documentation workflow * replaces level to Contributed * removed expectedSQL for initScript
- Loading branch information
1 parent
dcc3eb9
commit 6ac90d9
Showing
53 changed files
with
64 additions
and
156 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,6 +1,6 @@ | ||
/liquibase-biqquery.iml | ||
/.idea/ | ||
/target/ | ||
/build | ||
derby.log | ||
liquibase-bigquery.iml | ||
src/test/java/BigqueryIT.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
17 changes: 0 additions & 17 deletions
17
src/test/resources/liquibase/harness/change/changelogs/bigquery/renameView.xml
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/test/resources/liquibase/harness/change/expectedSql/bigquery/1initScript.sql
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addAutoIncrement.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support auto increment | ||
INVALID TEST -- BigQuery doesn't support auto increment |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addCheckConstraint.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support check constraints | ||
INVALID TEST -- BigQuery doesn't support check constraints |
16 changes: 6 additions & 10 deletions
16
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addColumn.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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
INVALID TEST | ||
--- | ||
'BigQuery does not handle properly column drops which is tested as last step in this test | ||
ALTER TABLE lharness.authors ADD COLUMN varcharColumn STRING | ||
ALTER TABLE lharness.authors ADD COLUMN intColumn INT64 | ||
ALTER TABLE lharness.authors ADD COLUMN dateColumn date | ||
UPDATE lharness.authors SET varcharColumn = "INITIAL_VALUE" WHERE 1 = 1 | ||
UPDATE lharness.authors SET intColumn = 5 WHERE 1 = 1 | ||
UPDATE lharness.authors SET dateColumn = "2020-09-21" WHERE 1 = 1 | ||
' | ||
ALTER TABLE harness_test_ds.authors ADD COLUMN varcharColumn STRING | ||
ALTER TABLE harness_test_ds.authors ADD COLUMN intColumn INT64 | ||
ALTER TABLE harness_test_ds.authors ADD COLUMN dateColumn date | ||
UPDATE harness_test_ds.authors SET varcharColumn = 'INITIAL_VALUE' WHERE 1 = 1 | ||
UPDATE harness_test_ds.authors SET intColumn = 5 WHERE 1 = 1 | ||
UPDATE harness_test_ds.authors SET dateColumn = '2020-09-21' WHERE 1 = 1 |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addDefaultValue.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
'BigQuery does not support default values for columns' | ||
INVALID TEST -- BigQuery does not support default values for columns |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addDefaultValueBoolean.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support default values for columns | ||
INVALID TEST -- BigQuery does not support default values for columns |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addDefaultValueComputed.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support default values for columns | ||
INVALID TEST -- BigQuery does not support default values for columns |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addDefaultValueDate.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support default values for columns | ||
INVALID TEST -- BigQuery does not support default values for columns |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addDefaultValueNumeric.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support default values for columns | ||
INVALID TEST -- BigQuery does not support default values for columns |
2 changes: 1 addition & 1 deletion
2
...t/resources/liquibase/harness/change/expectedSql/bigquery/addDefaultValueSequenceNext.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support default values for columns | ||
INVALID TEST -- BigQuery does not support default values for columns |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addForeignKey.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support FK | ||
INVALID TEST -- BigQuery does not support FK |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addNotNullConstraint.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support constraints | ||
INVALID TEST -- BigQuery does not support constraints |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addPrimaryKey.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support PK | ||
INVALID TEST -- BigQuery does not support PK |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/addUniqueConstraint.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support constraints | ||
INVALID TEST -- BigQuery does not support constraints |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/alterSequence.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support sequences | ||
INVALID TEST -- BigQuery doesn't support sequences |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/createIndex.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support indexes | ||
INVALID TEST -- BigQuery doesn't support indexes |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/createPackage.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support packages | ||
INVALID TEST -- BigQuery doesn't support packages |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/createPackageBody.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support package bodies | ||
INVALID TEST -- BigQuery doesn't support package bodies |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/createProcedure.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST | ||
INVALID TEST -- procedure snapshot is a pro feature, we can't verify procedure was created without snapshotting |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/createProcedureFromFile.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST | ||
INVALID TEST -- procedure snapshot is a pro feature, we can't verify procedure was created without snapshotting |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/createSequence.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support sequences | ||
INVALID TEST -- BigQuery doesn't support sequences |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTrigger.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support triggers | ||
INVALID TEST -- BigQuery doesn't support triggers |
1 change: 1 addition & 0 deletions
1
src/test/resources/liquibase/harness/change/expectedSql/bigquery/createView.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 @@ | ||
CREATE VIEW harness_test_ds.test_view AS select id, first_name, last_name, email from authors |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/disableCheckConstraint.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support check constraints | ||
INVALID TEST -- BigQuery doesn't support check constraints |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/disableTrigger.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support triggers | ||
INVALID TEST -- BigQuery doesn't support triggers |
2 changes: 1 addition & 1 deletion
2
.../resources/liquibase/harness/change/expectedSql/bigquery/dropAllForeignKeyConstraints.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support FK | ||
INVALID TEST -- BigQuery does not support FK |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropCheckConstraint.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support check constraints | ||
INVALID TEST -- BigQuery doesn't support check constraints |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropDefaultValue.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support default values | ||
INVALID TEST -- BigQuery doesn't support default values |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropForeignKey.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support FK | ||
INVALID TEST -- BigQuery does not support FK |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropFunction.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support functions | ||
INVALID TEST -- BigQuery doesn't support functions |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropIndex.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support indexes | ||
INVALID TEST -- BigQuery doesn't support indexes |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropNotNullConstraint.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support constraints | ||
INVALID TEST -- BigQuery does not support constraints |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropPrimaryKey.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support PK | ||
INVALID TEST -- BigQuery does not support PK |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropSequence.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support sequences | ||
INVALID TEST -- BigQuery doesn't support sequences |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropTrigger.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support triggers | ||
INVALID TEST -- BigQuery doesn't support triggers |
2 changes: 1 addition & 1 deletion
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropUniqueConstraint.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 |
---|---|---|
@@ -1 +1 @@ | ||
INVALID TEST BigQuery does not support constraints | ||
INVALID TEST -- BigQuery does not support constraints |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/enableCheckConstraint.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support check constraints | ||
INVALID TEST -- BigQuery doesn't support check constraints |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/enableTrigger.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support triggers | ||
INVALID TEST -- BigQuery doesn't support triggers |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/executeCommand.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support commands | ||
INVALID TEST -- BigQuery doesn't support commands |
12 changes: 9 additions & 3 deletions
12
src/test/resources/liquibase/harness/change/expectedSql/bigquery/mergeColumns.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
INVALID TEST | ||
--- | ||
'BigQuery does not handle properly column drops which is tested in this test' | ||
CREATE TABLE harness_test_ds.full_name_table (first_name STRING(50), last_name STRING(50)) | ||
INSERT INTO harness_test_ds.full_name_table (first_name) VALUES ('John') | ||
UPDATE harness_test_ds.full_name_table SET last_name = 'Doe' WHERE first_name='John' | ||
INSERT INTO harness_test_ds.full_name_table (first_name) VALUES ('Jane') | ||
UPDATE harness_test_ds.full_name_table SET last_name = 'Doe' WHERE first_name='Jane' | ||
ALTER TABLE harness_test_ds.full_name_table ADD COLUMN full_name STRING(255) | ||
UPDATE harness_test_ds.full_name_table SET full_name = first_name || ' ' || last_name WHERE 1 = 1 | ||
ALTER TABLE harness_test_ds.full_name_table DROP COLUMN first_name | ||
ALTER TABLE harness_test_ds.full_name_table DROP COLUMN last_name |
2 changes: 0 additions & 2 deletions
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/reanameColumn.sql
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/test/resources/liquibase/harness/change/expectedSql/bigquery/reanameTable.sql
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameColumn.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 @@ | ||
ALTER TABLE harness_test_ds.authors RENAME COLUMN first_name TO first_name_renameColumn_test |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameSequence.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support sequences | ||
INVALID TEST -- BigQuery doesn't support sequences |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameTrigger.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support rename | ||
INVALID TEST -- BigQuery doesn't support rename |
4 changes: 1 addition & 3 deletions
4
src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameView.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 |
---|---|---|
@@ -1,3 +1 @@ | ||
INVALID TEST | ||
'CREATE VIEW test_view AS select dim_channel_key, channel_name, channel_type, publisher from authors | ||
ALTER VIEW RENAME test_view TO test_view_new' | ||
INVALID TEST -- BigQuery doesn't support view rename https://cloud.google.com/bigquery/docs/managing-views#rename_a_view |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/setColumnRemarks.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support remarks | ||
INVALID TEST -- BigQuery doesn't support remarks |
3 changes: 1 addition & 2 deletions
3
src/test/resources/liquibase/harness/change/expectedSql/bigquery/setTableRemarks.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
INVALID TEST | ||
-- BigQuery doesn't support remarks | ||
INVALID TEST -- BigQuery doesn't support remarks |