Skip to content

Make test_display_pg_json pass regardless of build setup and dependencies#21502

Merged
Jefffrey merged 3 commits intoapache:mainfrom
AdamGS:adamg/fix-pg-viz-test
Apr 18, 2026
Merged

Make test_display_pg_json pass regardless of build setup and dependencies#21502
Jefffrey merged 3 commits intoapache:mainfrom
AdamGS:adamg/fix-pg-viz-test

Conversation

@AdamGS
Copy link
Copy Markdown
Contributor

@AdamGS AdamGS commented Apr 9, 2026

Which issue does this PR close?

Rationale for this change

Running tests for datafusion-expr currently fails locally, but due to feature unification with the subtrait dependency it does pass in CI.

What changes are included in this PR?

Enables a feature for a dependency during tests.

Are these changes tested?

Ran tests for the crate directly.

Are there any user-facing changes?

None.

@AdamGS AdamGS changed the title Make pass regardless of build setup and dependencies Make test_display_pg_json pass regardless of build setup and dependencies Apr 9, 2026
@github-actions github-actions bot added the logical-expr Logical plan and expressions label Apr 9, 2026
@AdamGS AdamGS force-pushed the adamg/fix-pg-viz-test branch from 5615771 to dd68f71 Compare April 9, 2026 10:17
@AdamGS
Copy link
Copy Markdown
Contributor Author

AdamGS commented Apr 9, 2026

Just realized that there's a SLT test that has the same question in explain.slt:642, it just runs explain format pgjson select * from values (1);. I'll add the same fix to the sqllogictest crate, I think its best to avoid enabling it globally because its a pretty popular crate and we don't want to impact downstream users.

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Apr 9, 2026
Signed-off-by: Adam Gutglick <adamgsal@gmail.com>
Copy link
Copy Markdown
Contributor

@Jefffrey Jefffrey left a comment

Choose a reason for hiding this comment

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

Makes sense to me. I think I'm hitting a similar issue with a vanilla cargo test where cli_explain_environment_overrides in datafusion-cli fails 🤔

@Jefffrey Jefffrey added this pull request to the merge queue Apr 18, 2026
@Jefffrey
Copy link
Copy Markdown
Contributor

Thanks @AdamGS

Merged via the queue into apache:main with commit 8a650f5 Apr 18, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-expr Logical plan and expressions sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants