Skip to content

Conversation

@danking
Copy link
Contributor

@danking danking commented Oct 16, 2025

Error on duplicates is better for new users who accidentally collide names.

Error on duplicates is better for new users who accidentally collide names.

Signed-off-by: Daniel King <dan@spiraldb.com>
@danking danking marked this pull request as ready for review October 16, 2025 20:05
@danking danking added the changelog/feature A new feature label Oct 16, 2025
@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

❌ Patch coverage is 93.07692% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.00%. Comparing base (fe8594d) to head (e008203).
⚠️ Report is 33 commits behind head on develop.

Files with missing lines Patch % Lines
vortex-expr/src/exprs/merge.rs 94.95% 6 Missing ⚠️
vortex-expr/src/transform/remove_merge.rs 72.72% 3 Missing ⚠️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

#[default]
RightMost,
/// If two structs share a field name, error.
Error,
Copy link
Contributor

Choose a reason for hiding this comment

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

default please.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Signed-off-by: Daniel King <dan@spiraldb.com>
Signed-off-by: Daniel King <dan@spiraldb.com>
Signed-off-by: Daniel King <dan@spiraldb.com>
Copy link
Contributor

@robert3005 robert3005 left a comment

Choose a reason for hiding this comment

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

left one small comment

if !dtype.is_struct() {
for expr in expr.values.iter() {
let dtype = expr.return_dtype(scope)?;
let Some(fields) = dtype.as_struct_fields_opt().cloned() else {
Copy link
Contributor

Choose a reason for hiding this comment

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

You likely don't need the clone here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good eye. Done.

Signed-off-by: Daniel King <dan@spiraldb.com>
@danking danking enabled auto-merge (squash) October 21, 2025 18:55
@danking danking merged commit 9879142 into develop Oct 21, 2025
39 checks passed
@danking danking deleted the dk/merge-optionally-errors-on-duplicates branch October 21, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants