-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
source-bigquery: escape column names and update google cloud bigquery artifact #11484
source-bigquery: escape column names and update google cloud bigquery artifact #11484
Conversation
/test connector=connectors/source-bigquery |
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
|
||
public class BigQuerySourceEscapeColumnNameTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this test is a copy of the BigQuerySourceTest
test, please avoid copypasting. We can merge them or create an abstract class for such tests.
/test connector=connectors/source-bigquery
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a minor comment. Approving in advance, PR to fix as per comments. Thanks
@@ -42,7 +42,7 @@ | |||
public static final String CONFIG_PROJECT_ID = "project_id"; | |||
public static final String CONFIG_CREDS = "credentials_json"; | |||
|
|||
private final String quote = ""; | |||
private final String quote = "`"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static final String QUOTE?
/publish connector=connectors/source-bigquery
|
/publish connector=connectors/source-bigquery
|
/publish connector=connectors/source-bigquery
|
/publish connector=connectors/source-bigquery
|
/publish connector=connectors/source-bigquery
|
… artifact (#11484) * source-bigquery: escape column names and update google cloud bigquery artifact * source-bigquery: escape column names and update google cloud bigquery artifact * source-bigquery: fix formatting * source-bigquery: fix review comments * bump versions * bump versions source_specs.yaml * revert bump versions * fix publish-command.yml * revert publish-command.yml * auto-bump connector version Co-authored-by: Octavia Squidington III <[email protected]>
What
Escape column tames for big query source.
If a sync contains a column thats a reserved identifier eg. interval we get an exception message from BigQuery stating the sql statement is invalid
How
Escape column tames for big query source during selection with spec char '`'
Recommended reading order
x.java
y.python
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changesTests
Unit
Put your unit tests output here.
Integration
Put your integration tests output here.
Acceptance
Put your acceptance tests output here.