Skip to content

Commit

Permalink
add column type specification for parquet snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Jan 22, 2025
1 parent 2e4e529 commit ad777d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sling/tests/suite.db.template.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ n test_name source_conn source_stream source_options stream_config target_conn t
1 csv_full_refresh local file://tests/files/test1.csv "{""columns"": {""first_name"": ""string(100)"", ""update_dt"": ""timestampz"", ""email"": ""string(150)""}, ""transforms"": {""update_dt"":[""set_timezone(\""America/New_York\"")""]}}" {} [conn] [schema].[table] full-refresh "{""adjust_column_type"":true, ""add_new_columns"":true, ""use_bulk"": true, ""pre_sql"" : ""{drop_view}"", ""table_keys"": { ""unique"": [ ""id"" ], ""index"": [ ""code"" ] }}" "{""validation_row_count"": ""1000"", ""validation_types"": {""code"":""decimal"",""create_dt"":""timestamp"",""date"":""date"",""rating"":""decimal"",""target"":""bool"",""update_dt"":""timestampz""}}"
2 csv_full_refresh_delimiter local file://tests/files/test5.csv {} [conn] [schema].[table]_2 full-refresh "{""post_sql"" : ""{drop_view}""}" "{""validation_row_count"": "">0""}"
3 discover_table [conn] [schema].[table] discover "{""validation_contains"": ""create_dt"", ""validation_row_count"": ""11"", ""level"": ""column""}"
4 parquet_snapshot local file://tests/files/test1.parquet {} [conn] [schema].[table]_snapshot snapshot "{""post_sql"" : ""drop table [schema].[table]_2""}" "{""validation_row_count"": "">999"", ""validation_types"": {""code"":""decimal"",""create_dt"":""timestampz"",""date"":""date"",""rating"":""decimal"",""target"":""bool""}}"
4 parquet_snapshot local file://tests/files/test1.parquet "{""columns"": {""date"": ""date""}}" [conn] [schema].[table]_snapshot snapshot "{""post_sql"" : ""drop table [schema].[table]_2""}" "{""validation_row_count"": "">999"", ""validation_types"": {""code"":""decimal"",""create_dt"":""timestampz"",""date"":""date"",""rating"":""decimal"",""target"":""bool""}}"
5 parquet_truncate local file://tests/files/test1.parquet "{""columns"": {""rating"": ""float""}}" [conn] [schema].[table]_truncate truncate "{""pre_sql"": ""drop table [schema].[table]_snapshot "", ""post_sql"" : ""drop table [schema].[table]_truncate""}"
6 csv_wide_full_refresh local file://tests/files/test.wide.csv "{""limit"": 90}" {} [conn] [schema].[table]_wide full-refresh "{""adjust_column_type"":true, ""add_new_columns"":true, ""use_bulk"": false, ""table_keys"": { ""unique"": [ ""id"" ] }}" "{""validation_row_count"": ""90""}"
7 table_full_refresh_into_postgres [conn] [schema].[table] {} {} postgres public.[table]_pg full-refresh "{""adjust_column_type"":true, ""add_new_columns"":true, ""use_bulk"": true}" "{""validation_row_count"": "">900"", ""validation_types"": {""code"":""decimal"",""create_dt"":""timestamp"",""date"":""date"",""rating"":""decimal"",""target"":""bool"",""update_dt"":""timestampz""}}"
Expand Down

0 comments on commit ad777d7

Please sign in to comment.