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 Snowflake: Kotlin convert DestinationHandler #38629

Conversation

gisripa
Copy link
Contributor

@gisripa gisripa commented May 23, 2024

What

SnowflakeDestinationHandler conversion to Kotlin.
Few blocks had to be rewritten because auto conversion produced convoluted code and compilation errors.

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented May 23, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 11:45pm

Copy link
Contributor Author

gisripa commented May 23, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

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

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

@gisripa gisripa changed the title snowflake-desthandler-kotlin Destination Snowflake: Kotlin convert DestinationHandler May 23, 2024
@gisripa gisripa marked this pull request as ready for review May 23, 2024 18:47
@gisripa gisripa requested a review from a team as a May 23, 2024 18:47
.associateTo(LinkedHashMap()) { it.key!! to it.value.type }
// soft-resetting https://github.com/airbytehq/airbyte/pull/31082
val hasPksWithNonNullConstraint: Boolean =
existingTable.columns.any { pks.contains(it.key) && !it.value.isNullable }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

AND table_schema IN (${IntRange(1, streamIds.size).joinToString { "?" }})
AND table_name IN (${IntRange(1, streamIds.size).joinToString { "?" }})

""".trimIndent()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gisripa gisripa force-pushed the gireesh/05-23-snowflake-desthandler-kotlin branch 2 times, most recently from bf9c2f2 to ddea09b Compare May 23, 2024 18:54
@gisripa gisripa force-pushed the gireesh/05-23-snowflake-minor-cleanup branch from 754cac2 to 40e1576 Compare May 23, 2024 18:55
@gisripa gisripa force-pushed the gireesh/05-23-snowflake-desthandler-kotlin branch from ddea09b to 3d19907 Compare May 23, 2024 18:55
@gisripa gisripa force-pushed the gireesh/05-23-snowflake-minor-cleanup branch from 40e1576 to 9f42ddf Compare May 23, 2024 23:44
@gisripa gisripa force-pushed the gireesh/05-23-snowflake-desthandler-kotlin branch from 3d19907 to 8350775 Compare May 23, 2024 23:45
@gisripa gisripa closed this May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants