Skip to content

Conversation

@felipecrv
Copy link
Contributor

No description provided.

@felipecrv felipecrv requested a review from zeroshade as a code owner April 11, 2025 02:46
@github-actions github-actions bot added this to the ADBC Libraries 18 milestone Apr 11, 2025
@zeroshade
Copy link
Member

Is there anything in the unit tests for these? If not, is it reasonable/possible to add anything for it?

@felipecrv felipecrv force-pushed the felipe/bq-partitions branch from 290f314 to 9eb9ad1 Compare April 11, 2025 17:59
@felipecrv
Copy link
Contributor Author

Is there anything in the unit tests for these? If not, is it reasonable/possible to add anything for it?

The code doesn't seem very unit testable without actually connecting to a BigQuery server, creating a partitioned table/view and then inspecting the metadata.

{"MaterializedView.AllowNonIncrementalDefinition": "false",
 "MaterializedView.Query": "SELECT * FROM test_felipecrv.a",
 "Location": "US", "TimePartitioning.Type": "MONTH", "Labels": "", 
 "TimePartitioning.Expiration": "72h0m0s", "NumRows": "0",
 "NumBytes": "0", "ETag": "6RLDXSGfrJqAc2nJ1GFHhg==",
 "FullID": "....:felipecrv.b_materialized_view",
 "MaterializedView.RefreshInterval": "30m0s", "NumLongTermBytes": "0", "Description": "", 
 "Type": "MATERIALIZED_VIEW",
 "MaterializedView.EnableRefresh": "true",
 "LastModifiedTime": 
 "2025-04-10T14:10:27.685-07:00",
 "CreationTime": "2025-04-10T14:10:15.492-07:00",
 "Name": "",
 "TimePartitioning.Field": "txn_date",
 "MaterializedView.LastRefreshTime": "2025-04-10T14:10:15.694-07:00",
 "DefaultCollation": ""}

@zeroshade
Copy link
Member

@felipecrv yea, for example our snowflake tests actually make snowflake requests. I'm not aware of anything that can mock BigQuery so we might need to actually add credentials to connect to bigquery. I'm okay with leaving that out of this then.

@felipecrv felipecrv merged commit a187ead into apache:main Apr 11, 2025
39 of 40 checks passed
felipecrv added a commit to dbt-labs/arrow-adbc that referenced this pull request Apr 11, 2025
felipecrv added a commit to dbt-labs/arrow-adbc that referenced this pull request Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants