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

[duckdb] Operation Foie Gras #1457

Merged
merged 1 commit into from
Jan 18, 2025
Merged

[duckdb] Operation Foie Gras #1457

merged 1 commit into from
Jan 18, 2025

Conversation

FelixGV
Copy link
Contributor

@FelixGV FelixGV commented Jan 18, 2025

Time to force-feed the duck. Pre-allocated all Avro deserializers, connection, prepared statement as well as the InsertProcessor, so that the hot path has as little to do as possible.

Miscellaneous:

  • Changed the unhandled type policy from FAIL to SKIP.

  • Made DVRT implement Closeable.

  • Added a new useUniformInputValueSchema() API to DVRT:

    • If false (default), SIT will give whatever incoming record in the schema it comes in.

    • If true (which the DuckDB DVRT does), SIT will use Avro schema evolution to decode the incoming records into the same schema which it passed into the DVRT constructor.

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

Time to force-feed the duck. Pre-allocated all Avro deserializers,
connection, prepared statement as well as the InsertProcessor, so
that the hot path has as little to do as possible.

Miscellaneous:

- Changed the unhandled type policy from FAIL to SKIP.

- Made DVRT implement Closeable.

- Added a new useUniformInputValueSchema() API to DVRT:

  - If false (default), SIT will give whatever incoming record in
    the schema it comes in.

  - If true (which the DuckDB DVRT does), SIT will use Avro schema
    evolution to decode the incoming records into the same schema
    which it passed into the DVRT constructor.
@FelixGV FelixGV enabled auto-merge (squash) January 18, 2025 04:48
@FelixGV FelixGV merged commit 1b1a5fc into linkedin:main Jan 18, 2025
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants