Repository navigation
Destination bigquery: better schema evolution error messages - #62106
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
👋 Greetings, Contributor!Here are some helpful tips and reminders for your convenience. Helpful Resources
PR Slash CommandsAirbyte Maintainers (that's you!) can execute the following slash commands on your PR:
|
|
| // If we have no changed columns, we will skip the second alter. | ||
| if (initialAlterations.isNotEmpty()) { | ||
| databaseHandler.executeWithRetries( | ||
| """ALTER TABLE $tableId ${initialAlterations.joinToString(",")}""" |
There was a problem hiding this comment.
Should we add a helper for this not duplicate that alter everywhere?
There was a problem hiding this comment.
ehhhh. IMO pulling out a helper probably just obfuscates more than anything. Here at least it's relatively simple to figure out what the generated SQL will look like; I think pulling out a shared function will just make that less clear
| } | ||
| if (addTempColumns.isNotEmpty()) { | ||
| databaseHandler.executeWithRetries( | ||
| """ALTER TABLE $tableId ${addTempColumns.joinToString(",")}""" |
There was a problem hiding this comment.
Should the table name be backticked as well?
It is unclear to me if we should backtick everything moving forward?
There was a problem hiding this comment.
tableId is already quoted -
val tableId = """`$projectId`.`${tableName.namespace}`.`${tableName.name}`"""There was a problem hiding this comment.
but yes, we should be putting backticks around everything
There was a problem hiding this comment.
(https://github.com/airbytehq/airbyte-internal-issues/issues/13494 is to add more tests to enforce that)
|
Note Detected that there are differences in the Gradle dependencies. |
see e.g. https://cloud.airbyte.com/workspaces/828cc93d-184e-41ca-b9ff-02020c7e703f/connections/fcca9ccb-db27-42b8-b266-627c31a535c6/timeline?=&eventId=c8b33818-a16d-49a3-a808-52153cb3b615&openLogs=true
the error we show in the UI only includes our generic error. We should include the underlying
Invalid NUMERIC value: 37,5. Add to the message that the user could run a refreshalso, in cases where schema evolution fails, we leave a temp column in the user's table. This currently causes a weird error (
column <temp column> already exists) if they retry the sync. Handle that case so that we continue showing the actual schema evolution error.also, pin to CDK artifact 0.508 (published from 0da52a3)