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

Destination Databricks: Handle table name casing correctly #44506

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

edgao
Copy link
Contributor

@edgao edgao commented Aug 21, 2024

stacked on #44505 for the new test case. Verified that the test fails without the .lowercase() stuff in this PR. Includes all the same changes as #42504 to upgrade to the newest CDK (I think the diff is reasonably clear, but lmk if you want me to split the cdk upgrade + bugfix to separate PRs)

includes something similar to #44526 (i.e. don't actually fetch the gen ID). I could be convinced to just directly ship this wit the "only fetch gen ID during truncate sync" logic though.

(I also ran a sync locally with a mixed-case stream name, which succeeded with a dev image and failed with the mainline image)

Copy link

vercel bot commented Aug 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Aug 22, 2024 6:49pm

Copy link
Contributor Author

edgao commented Aug 21, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @edgao and the rest of your teammates on Graphite Graphite

@edgao edgao force-pushed the edgao/mixed_case_sqlgen_test branch 2 times, most recently from 5555212 to 6ae90f0 Compare August 21, 2024 15:17
@edgao edgao force-pushed the edgao/databricks_case_sensitivity branch 3 times, most recently from d083ccd to a2aa68f Compare August 21, 2024 15:37
@edgao edgao force-pushed the edgao/mixed_case_sqlgen_test branch from 6ae90f0 to 7fc4b42 Compare August 21, 2024 16:45
@edgao edgao force-pushed the edgao/databricks_case_sensitivity branch 2 times, most recently from c385050 to ff0d3bd Compare August 21, 2024 22:07
@edgao edgao marked this pull request as ready for review August 21, 2024 22:14
@edgao edgao requested a review from a team as a code owner August 21, 2024 22:14
@octavia-squidington-iv octavia-squidington-iv requested review from a team August 21, 2024 22:15
namingTransformer.getNamespace(namespace).lowercase(),
namingTransformer.getIdentifier(name).lowercase(),
namingTransformer.getNamespace(rawNamespaceOverride).lowercase(),
namingTransformer.getIdentifier(StreamId.concatenateRawTableName(namespace, name)).lowercase(),
Copy link
Contributor

Choose a reason for hiding this comment

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

This is where namingTransformer would've really helped if we had the methods separation correctly 😅 unfortunately getIdentifier is shared between columns and raw table name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yuuup. though it's kind of redundant with sqlgenerator making that split anyway 🤷 there's probably a world where we kill NamingTransformer and just do everything directly in sqlgenerator

@edgao edgao force-pushed the edgao/mixed_case_sqlgen_test branch 2 times, most recently from 8508c4d to 3edff7b Compare August 22, 2024 15:49
Base automatically changed from edgao/mixed_case_sqlgen_test to master August 22, 2024 15:59
@edgao edgao force-pushed the edgao/databricks_case_sensitivity branch from ff0d3bd to 3a94916 Compare August 22, 2024 16:01
@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Aug 22, 2024
@edgao edgao enabled auto-merge (squash) August 22, 2024 16:06
@edgao edgao force-pushed the edgao/databricks_case_sensitivity branch from 3de5d36 to 02e71aa Compare August 22, 2024 18:48
@edgao edgao merged commit 10f8f3f into master Aug 22, 2024
34 checks passed
@edgao edgao deleted the edgao/databricks_case_sensitivity branch August 22, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/destination/databricks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants