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] Cleanup and refactor DVRT interface to be more configurable #1445

Merged
merged 12 commits into from
Jan 16, 2025

Conversation

kvargha
Copy link
Contributor

@kvargha kvargha commented Jan 16, 2025

Summary, imperative, start upper case, don't end with a period

Previously, the user would have to define the key and output schema inside their DVRT implementation, which wasn't clean. Now, they're moved into the constructor. The user now only needs to provide the output schema, as the key schema will be automatically passed in by DVC.

I also added a constructor parameter for original output schema to support reader/writer schemas, but added a ToDo on how to implement the logic to pass in the correct schema.

Lastly, I make the DuckDB DVRT implementation more configurable, as it was previously more hardcoded.

How was this PR tested?

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.

This changes modifies the constructor of DVRT with the intention of making the implementation cleaner.

@kvargha kvargha enabled auto-merge (squash) January 16, 2025 05:12
Copy link
Contributor

@FelixGV FelixGV left a comment

Choose a reason for hiding this comment

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

Thanks Koorous! This PR is a very good improvement! I left a few minor comments, but I think this is very close to merging! Looking forward to it!

FelixGV
FelixGV previously approved these changes Jan 16, 2025
Copy link
Contributor

@FelixGV FelixGV left a comment

Choose a reason for hiding this comment

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

Thanks a lot Koorous! LGTM! 🚀 🚢

FelixGV
FelixGV previously approved these changes Jan 16, 2025
@kvargha kvargha dismissed stale reviews from FelixGV and ZacAttack via db2738e January 16, 2025 19:05
@kvargha kvargha merged commit c77004a into linkedin:main Jan 16, 2025
56 checks passed
@kvargha kvargha deleted the dvrt_refactor branch January 16, 2025 19:44
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.

3 participants