Repository navigation
feat(bigquery): add bigquery_search_table sample to search all column… - #14713
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new BigQuery sample script, bigquery_search_table.py, which demonstrates how to perform a full-text search across all columns of a table using the SEARCH function, along with its corresponding unit tests and configuration files. Feedback is provided on noxfile_config.py to adjust the ignored Python versions so that only the oldest and newest supported Python releases are tested, specifically by not ignoring Python 3.10 and instead ignoring intermediate versions like 3.11 and 3.12.
13bed0c to
b75f1e0
Compare
b75f1e0 to
d396ba0
Compare
…s of a table with SEARCH Problem: The BigQuery documentation (https://cloud.google.com/bigquery/docs/search) needs a standalone, tested Python code sample demonstrating how to search all columns of a table with SEARCH (region tag `bigquery_search_table`). Solution: - Add `search_table(project_id: str) -> None` in `bigquery/search/bigquery_search_table.py` (Run a full-text search across all indexed or unindexed columns of a BigQuery table using the SEARCH function.) - Add unit tests (`bigquery/search/bigquery_search_table_test.py`) covering both the success path and API error handling (`GoogleAPICallError`)
d396ba0 to
1799c47
Compare
…s of a table with SEARCH
Problem:
The BigQuery documentation (https://cloud.google.com/bigquery/docs/search) needs a standalone, tested Python code sample demonstrating how to search all columns of a table with SEARCH (region tag
bigquery_search_table).Solution:
search_table(project_id: str) -> Noneinbigquery/search/bigquery_search_table.py(Run a full-text search across all indexed or unindexed columns of a BigQuery table using the SEARCH function.)bigquery/search/bigquery_search_table_test.py) covering both the success path and API error handling (GoogleAPICallError)Checklist
Testing
Compliance & Style
Post-Approval Actions