Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17644 Update Destination data type test to use the new data types #19281

Merged

Conversation

suhomud
Copy link
Contributor

@suhomud suhomud commented Nov 10, 2022

What

Prerequisite : see

Add support of new protocol versions for DestinationAcceptanceTest. With this change we can handle different protocol versions in destination integration tests.

How

Added new method getProtocolVersion() to DestinationAcceptanceTest which can be overridden in child classes.
original method example:

  public ProtocolVersion getProtocolVersion() {
    return ProtocolVersion.DEFAULT;
  }

overridden:

public ProtocolVersion getProtocolVersion() {
   return ProtocolVersion.V0;
 }

The ProtocolVersion is used to prefix dataset files
Screenshot 2022-11-11 at 02 33 04

Recommended reading order

  1. DestinationAcceptanceTest - new getProtocolVersion method, prefixing files name.
  2. ProtocolVersion - enum with supported protocol version and file prefix
  3. ArgumentProviderUtil prefix file name method, reflection magic (This one is used to get protocol version in Argument Providers, since during it's execution test Instance is not instantiated. PS: Feel free to argue this approach since this result can be achieved in a tests itself without modifying Argument Providers )
  4. DataArgumentsProvider
  5. DataTypeTestArgumentProvider
  6. NamespaceTestCaseProvider moved from DestinationAcceptanceTest.
  7. NumberDataTypeTestArgumentProvider
  8. all dataset files under resources/v0 folder

@github-actions
Copy link
Contributor

github-actions bot commented Nov 10, 2022

Affected Connector Report

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to do the following as needed:

  • Run integration tests
  • Bump connector or module version
  • Add changelog
  • Publish the new version

✅ Sources (0)

Connector Version Changelog Publish
  • See "Actionable Items" below for how to resolve warnings and errors.

❌ Destinations (47)

Connector Version Changelog Publish
destination-aws-datalake 0.1.1
destination-azure-blob-storage 0.1.6
(doc not found)
destination-bigquery 1.2.7
destination-bigquery-denormalized 1.2.7
(doc not found)
destination-cassandra 0.1.4
(changelog missing)
destination-clickhouse 0.2.0
destination-clickhouse-strict-encrypt 0.2.0
(not in seed)
destination-csv 0.2.10
(doc not found)
destination-databricks 0.3.1
destination-dev-null 0.2.7
(doc not found)

(not in seed)
destination-doris 0.1.0
(changelog missing)
destination-dynamodb 0.1.7
destination-e2e-test 0.2.4
destination-elasticsearch 0.1.6
destination-elasticsearch-strict-encrypt 0.1.6
(not in seed)
destination-gcs 0.2.12
destination-iceberg 0.1.0
(changelog missing)
destination-jdbc 0.3.14
(doc not found)

(not in seed)
destination-kafka 0.1.10
(changelog missing)
destination-keen 0.2.4
(changelog missing)
destination-kinesis 0.1.5
(changelog missing)
destination-local-json 0.2.11
destination-mariadb-columnstore 0.1.7
destination-mongodb 0.1.9
destination-mongodb-strict-encrypt 0.1.9
(not in seed)
destination-mqtt 0.1.3
destination-mssql 0.1.22
destination-mssql-strict-encrypt 0.1.22
(not in seed)
destination-mysql 0.1.20
destination-mysql-strict-encrypt 0.1.21
(mismatch: 0.1.20)

(not in seed)
destination-oracle 0.1.19
destination-oracle-strict-encrypt 0.1.19
(not in seed)
destination-postgres 0.3.26
destination-postgres-strict-encrypt 0.3.26
(not in seed)
destination-pubsub 0.1.6
(changelog missing)
destination-pulsar 0.1.3
(changelog missing)
destination-r2 0.1.0
destination-redis 0.1.4
destination-redpanda 0.1.0
(changelog missing)
destination-redshift 0.3.51
destination-rockset 0.1.4
(changelog missing)
destination-s3 0.3.17
destination-s3-glue 0.1.0
(changelog missing)
destination-scylla 0.1.3
destination-snowflake 0.4.40
destination-tidb 0.1.0
destination-yugabytedb 0.1.0
  • See "Actionable Items" below for how to resolve warnings and errors.

✅ Other Modules (0)

Actionable Items

(click to expand)

Category Status Actionable Item
Version
mismatch
The version of the connector is different from its normal variant. Please bump the version of the connector.

doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.
Changelog
doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.

changelog missing
There is no chnagelog for the current version of the connector. If you are the author of the current version, please add a changelog.
Publish
not in seed
The connector is not in the seed file (e.g. source_definitions.yaml), so its publication status cannot be checked. This can be normal (e.g. some connectors are cloud-specific, and only listed in the cloud seed file). Please double-check to make sure that it is not a bug.

diff seed version
The connector exists in the seed file, but the latest version is not listed there. This usually means that the latest version is not published. Please use the /publish command to publish the latest version.

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-aws-datalake, destination-azure-blob-storage, destination-bigquery

🕑 connectors/destination-aws-datalake, https://github.com/airbytehq/airbyte/actions/runs/3435473939
❌ connectors/destination-aws-datalake, https://github.com/airbytehq/airbyte/actions/runs/3435473939
🐛

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-aws-datalake

🕑 connectors/destination-aws-datalake https://github.com/airbytehq/airbyte/actions/runs/3435511081
❌ connectors/destination-aws-datalake https://github.com/airbytehq/airbyte/actions/runs/3435511081
🐛 https://gradle.com/s/lhhin37yzpflu

Build Failed

Test summary info:

Could not find result summary

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-azure-blob-storage

🕑 connectors/destination-azure-blob-storage https://github.com/airbytehq/airbyte/actions/runs/3435513807
✅ connectors/destination-azure-blob-storage https://github.com/airbytehq/airbyte/actions/runs/3435513807
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/3435582505
✅ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/3435582505
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 14      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    14      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     166      8    95%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         189     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 595    400    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1441    629    56%

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-cassandra

🕑 connectors/destination-cassandra https://github.com/airbytehq/airbyte/actions/runs/3435883122
✅ connectors/destination-cassandra https://github.com/airbytehq/airbyte/actions/runs/3435883122
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-clickhouse

🕑 connectors/destination-clickhouse https://github.com/airbytehq/airbyte/actions/runs/3435888196
✅ connectors/destination-clickhouse https://github.com/airbytehq/airbyte/actions/runs/3435888196
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 14      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    14      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     166      8    95%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         189     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 595    400    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1441    629    56%

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-csv

🕑 connectors/destination-csv https://github.com/airbytehq/airbyte/actions/runs/3435897318
✅ connectors/destination-csv https://github.com/airbytehq/airbyte/actions/runs/3435897318
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-bigquery-denormalized

🕑 connectors/destination-bigquery-denormalized https://github.com/airbytehq/airbyte/actions/runs/3436249574
✅ connectors/destination-bigquery-denormalized https://github.com/airbytehq/airbyte/actions/runs/3436249574
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 14      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    14      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     166      8    95%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         189     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 595    400    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1441    629    56%

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-clickhouse-strict-encrypt

🕑 connectors/destination-clickhouse-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/3436253861
✅ connectors/destination-clickhouse-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/3436253861
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 14      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    14      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     166      8    95%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         189     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 595    400    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1441    629    56%

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-databricks

🕑 connectors/destination-databricks https://github.com/airbytehq/airbyte/actions/runs/3436259723
✅ connectors/destination-databricks https://github.com/airbytehq/airbyte/actions/runs/3436259723
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-dev-null

🕑 connectors/destination-dev-null https://github.com/airbytehq/airbyte/actions/runs/3436268672
❌ connectors/destination-dev-null https://github.com/airbytehq/airbyte/actions/runs/3436268672
🐛 https://gradle.com/s/fivaieki437gm

Build Failed

Test summary info:

Could not find result summary

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-dynamodb

🕑 connectors/destination-dynamodb https://github.com/airbytehq/airbyte/actions/runs/3436268609
✅ connectors/destination-dynamodb https://github.com/airbytehq/airbyte/actions/runs/3436268609
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-e2e-test

🕑 connectors/destination-e2e-test https://github.com/airbytehq/airbyte/actions/runs/3436271535
❌ connectors/destination-e2e-test https://github.com/airbytehq/airbyte/actions/runs/3436271535
🐛 https://gradle.com/s/bkug7rnl66rga

Build Failed

Test summary info:

Could not find result summary

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-elasticsearch

🕑 connectors/destination-elasticsearch https://github.com/airbytehq/airbyte/actions/runs/3436276337
✅ connectors/destination-elasticsearch https://github.com/airbytehq/airbyte/actions/runs/3436276337
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-elasticsearch-strict-encrypt

🕑 connectors/destination-elasticsearch-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/3436281711
✅ connectors/destination-elasticsearch-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/3436281711
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-gcs

🕑 connectors/destination-gcs https://github.com/airbytehq/airbyte/actions/runs/3436285752
✅ connectors/destination-gcs https://github.com/airbytehq/airbyte/actions/runs/3436285752
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-jdbc

🕑 connectors/destination-jdbc https://github.com/airbytehq/airbyte/actions/runs/3436288550
✅ connectors/destination-jdbc https://github.com/airbytehq/airbyte/actions/runs/3436288550
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 14      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    14      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     166      8    95%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         189     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 595    400    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1441    629    56%

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-kafka

🕑 connectors/destination-kafka https://github.com/airbytehq/airbyte/actions/runs/3436291955
✅ connectors/destination-kafka https://github.com/airbytehq/airbyte/actions/runs/3436291955
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-keen

🕑 connectors/destination-keen https://github.com/airbytehq/airbyte/actions/runs/3436295005
✅ connectors/destination-keen https://github.com/airbytehq/airbyte/actions/runs/3436295005
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-kinesis

🕑 connectors/destination-kinesis https://github.com/airbytehq/airbyte/actions/runs/3436521815
✅ connectors/destination-kinesis https://github.com/airbytehq/airbyte/actions/runs/3436521815
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-local-json

🕑 connectors/destination-local-json https://github.com/airbytehq/airbyte/actions/runs/3436524448
✅ connectors/destination-local-json https://github.com/airbytehq/airbyte/actions/runs/3436524448
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-mariadb-columnstore

🕑 connectors/destination-mariadb-columnstore https://github.com/airbytehq/airbyte/actions/runs/3436531446
✅ connectors/destination-mariadb-columnstore https://github.com/airbytehq/airbyte/actions/runs/3436531446
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-mongodb

🕑 connectors/destination-mongodb https://github.com/airbytehq/airbyte/actions/runs/3436543717
✅ connectors/destination-mongodb https://github.com/airbytehq/airbyte/actions/runs/3436543717
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-mongodb-strict-encrypt

🕑 connectors/destination-mongodb-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/3436546875
✅ connectors/destination-mongodb-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/3436546875
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-mqtt

🕑 connectors/destination-mqtt https://github.com/airbytehq/airbyte/actions/runs/3436550047
✅ connectors/destination-mqtt https://github.com/airbytehq/airbyte/actions/runs/3436550047
No Python unittests run

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-mssql

🕑 connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/3436551917
✅ connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/3436551917
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 14      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    14      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     166      8    95%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         189     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 595    400    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1441    629    56%

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-mssql-strict-encrypt

🕑 connectors/destination-mssql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/3436554658
✅ connectors/destination-mssql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/3436554658
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 14      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    14      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     166      8    95%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         189     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 595    400    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1441    629    56%

Build Passed

Test summary info:

All Passed

@suhomud
Copy link
Contributor Author

suhomud commented Nov 10, 2022

/test connector=connectors/destination-mysql

🕑 connectors/destination-mysql https://github.com/airbytehq/airbyte/actions/runs/3436557443
❌ connectors/destination-mysql https://github.com/airbytehq/airbyte/actions/runs/3436557443
🐛 https://gradle.com/s/s427hfzegtwlq

Build Failed

Test summary info:

Could not find result summary

Copy link
Contributor

@grishick grishick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but @edgao should review as well before this can be merged

Copy link
Contributor

@edgao edgao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great! just a few comments 🚛

"type": ["array"],
"items": {
"type": ["object"],
"properties": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add a property_binary_data to the new-style test cases, since that's a new data type.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I meant that all the test files should include binary data (i.e. also data_type_array_test, data_type_basic_test, etc)

@suhomud suhomud requested a review from edgao November 17, 2022 12:35
Copy link
Contributor

@edgao edgao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one comment, but otherwise this looks good!

Copy link
Contributor

@edgao edgao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

derp. I also forgot that we should have tests for Infinity, -Infinity, and NaN number/integer values. (these should be added to the various messages.txt files)

@suhomud
Copy link
Contributor Author

suhomud commented Nov 18, 2022

derp. I also forgot that we should have tests for Infinity, -Infinity, and NaN number/integer values. (these should be added to the various messages.txt files)

Yeah good point. Will work on this. Assuming this will require two new fields in DestinationAcceptanceTest: supportNanTypeTest supportInfinityTypeTest Since some db will have Infinity others NaN or both

"$ref": "WellKnownTypes.json#definitions/TimestampWithTimezone"
},
"property_timestamp_without_timezone": {
"$ref": "WellKnownTypes.json#definitions/TimestampWithoutTimezone"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we also have TimeWithTimezone and TimeWithoutTimezone. Do we cover it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding it. Thanks for noticing

@suhomud
Copy link
Contributor Author

suhomud commented Nov 20, 2022

/test connector=connectors/destination-postgres

🕑 connectors/destination-postgres https://github.com/airbytehq/airbyte/actions/runs/3509352817
✅ connectors/destination-postgres https://github.com/airbytehq/airbyte/actions/runs/3509352817
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 14      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    14      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     166      8    95%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         189     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 595    400    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1441    629    56%

Build Passed

Test summary info:

All Passed

@grishick
Copy link
Contributor

This PR only changes tests and does not affect production, so it is safe to merge.

@grishick grishick merged commit e4cbec1 into master Nov 21, 2022
@grishick grishick deleted the suhomud/17644_update_destination_data_type_tests_new_data_types branch November 21, 2022 17:24
SofiiaZaitseva pushed a commit that referenced this pull request Nov 24, 2022
…9281)

This PR only changes tests and does not affect production, so it is safe to merge. 

* 17644 Destination acceptance test: protocol support

* 17644 data type array test catalog update

* 17644 correct array string type

* add v0 and v1 versions

* added binary_data type

* Added infinity, nan support. Added test time dataset. Updated ref link

* format fix
letiescanciano added a commit that referenced this pull request Nov 28, 2022
* master: (74 commits)
  Fix support icon in sidebar
  fix: add BuildPulse report for helm ac tests (#19785)
  fix: yaml syntax (#19775)
  🪟 🐛 Fix custom connection creation endpoint (#19702)
  Source facebook marketing: check "breakdowns" combinations (#19645)
  fix typo: notify instead of sync (#19737)
  find_non_rate_limited_PAT (#19736)
  Source Google Ads: fix schema for "campaigns" stream (#19700)
  🎉 Source Asana: migrate to new SAT, added base HTTP errors handling (#19561)
  fix order not to randomly fail backward compatibility check (#19377)
  Bump helm chart version reference to 0.42.0 (#19706)
  fix: add extraEnv block (#19703)
  Bump Airbyte version from 0.40.21 to 0.40.22 (#19687)
  Bump helm chart version reference to 0.41.3 (#19685)
  Add connector builder server to airbyte proxy, kube overlays, and helm charts (#19554)
  dbt Cloud integration doc (#19619)
  🪟 🎉 Display service token validation errors in the UI (#19578)
  17644 Update Destination data type test to use the new data types (#19281)
  Docs: fix broken connector builder UI docs links (#19631)
  Bump Airbyte version from 0.40.20 to 0.40.21 (#19634)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the destination data type tests to use the new data types
5 participants