Skip to content

fix(sqllogictest): add missing tokio rt-multi-thread feature#2386

Merged
CTTY merged 1 commit intoapache:mainfrom
toutane:toutane/fix/sqllogictest-tokio-rt-multi-thread
May 4, 2026
Merged

fix(sqllogictest): add missing tokio rt-multi-thread feature#2386
CTTY merged 1 commit intoapache:mainfrom
toutane:toutane/fix/sqllogictest-tokio-rt-multi-thread

Conversation

@toutane
Copy link
Copy Markdown
Contributor

@toutane toutane commented Apr 29, 2026

Which issue does this PR close?

What changes are included in this PR?

crates/sqllogictest/Cargo.toml was missing the rt-multi-thread feature for tokio, while tests/sqllogictests.rs calls tokio::runtime::Builder::new_multi_thread() which requires it.

This meant cargo test -p iceberg-sqllogictest failed to compile when run in isolation. The issue was invisible when using make build (--all-features --workspace) because crates/examples already enables tokio = { features = ["full"] }, and Cargo features are additive across the workspace graph.

Are these changes tested?

cargo test -p iceberg-sqllogictest

serde = { workspace = true }
tracing = { workspace = true }
tokio = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread"] }
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.

Should we also use full features?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

rt-multi-thread is the only feature required here (Builder::new_multi_thread()).

Using full would also fix the bug.

Copy link
Copy Markdown
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM ty!

@kevinjqliu
Copy link
Copy Markdown
Contributor

The issue was invisible when using make build (--all-features --workspace) because crates/examples already enables tokio = { features = ["full"] }, and Cargo features are additive across the workspace graph.

might be worth fixing this in case there are other similar issues

@kevinjqliu
Copy link
Copy Markdown
Contributor

opened #2389, CI should fail in that CI because the tokio fix isnt included

Copy link
Copy Markdown
Collaborator

@CTTY CTTY left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

@CTTY CTTY merged commit 3048bd3 into apache:main May 4, 2026
21 checks passed
@toutane toutane deleted the toutane/fix/sqllogictest-tokio-rt-multi-thread branch May 7, 2026 09:21
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.

cargo test -p iceberg-sqllogictest fails to compile: missing tokio rt-multi-thread feature

4 participants