Skip to content

fix: repair broken rust-test build on main (init_datasource_exec arg mismatch)#4712

Merged
comphead merged 1 commit into
apache:mainfrom
andygrove:fix-init-datasource-exec-test
Jun 23, 2026
Merged

fix: repair broken rust-test build on main (init_datasource_exec arg mismatch)#4712
comphead merged 1 commit into
apache:mainfrom
andygrove:fix-init-datasource-exec-test

Conversation

@andygrove

Copy link
Copy Markdown
Member

Which issue does this PR close?

N/A

Rationale for this change

The rust-test CI job is currently failing on main with a compile error:

error[E0061]: this function takes 17 arguments but 16 arguments were supplied
  --> core/src/parquet/parquet_exec.rs:295:20

This is a semantic merge conflict between two PRs that did not conflict textually:

#4707 was based on main before #4357 merged, so its test matched the 16-parameter signature and compiled on the branch. Once both landed on main, the test call no longer matched the signature. The non-test build does not compile that test code, so Build Native Library passes while cargo test (the rust-test job) fails. This blocks every open PR.

What changes are included in this PR?

Insert the missing allow_timestamp_ltz_to_ntz argument (false) immediately before session_ctx in the test call site, matching the current signature and the existing production call site in planner.rs.

How are these changes tested?

cargo test -p datafusion-comet --no-run now compiles successfully (it failed with E0061 before this change). The existing rust-test CI job exercises this test.

…ec test

The unit test added in apache#4707 calls init_datasource_exec with 16
arguments, but apache#4357 had already added a 17th parameter
(allow_timestamp_ltz_to_ntz) to the signature. The two PRs did not
conflict textually, so the mismatch was a semantic merge conflict that
only surfaces when compiling test code: the non-test build passes while
cargo test fails with E0061, breaking the rust-test CI job on main.

Insert the missing allow_timestamp_ltz_to_ntz argument (false) before
session_ctx so the test call matches the current signature.

@mbutrovich mbutrovich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @andygrove!

@comphead comphead merged commit 0339943 into apache:main Jun 23, 2026
28 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.

3 participants