Skip to content

fix(cubesql): preserve floating-point literal types in pushdown SQL - #11781

Open
davidda wants to merge 1 commit into
cube-js:masterfrom
davidda:feature/codex-float-literal-semantics
Open

fix(cubesql): preserve floating-point literal types in pushdown SQL#11781
davidda wants to merge 1 commit into
cube-js:masterfrom
davidda:feature/codex-float-literal-semantics

Conversation

@davidda

@davidda davidda commented Sep 6, 2026

Copy link
Copy Markdown

Render Float32 and Float64 literals through dialect casts so integral-valued floats do not become integer arithmetic after serialization or constant folding. This follows existing decimal literal handling and preserves intentional integer division.

Explicit float typing can change source-inferred decimal arithmetic and requires compatible dialect cast support. Add renderer and planner regressions and update affected SQL expectations.

Validation: 821 compiler tests passed, 6 ignored; workspace formatting and all-targets Clippy passed. Validated on a running instance for MSSQL.

Check List

  • [ x ] Tests have been run in packages where changes have been made if available
  • [ x ] Linter has been run for changed code
  • [ x ] Tests for the changes have been added if not covered yet
  • [ x ] Docs have been added / updated if required

Issue Reference this PR resolves
#11780

Render Float32 and Float64 literals through dialect casts so integral-valued floats do not become integer arithmetic after serialization or constant folding. This follows existing decimal literal handling and preserves intentional integer division.

Explicit float typing can change source-inferred decimal arithmetic and requires compatible dialect cast support. Add renderer and planner regressions and update affected SQL expectations.

Validation: 821 compiler tests passed, 6 ignored; workspace formatting and all-targets Clippy passed. Cross-dialect end-to-end validation remains outstanding.
@davidda
davidda requested a review from a team as a code owner September 6, 2026 07:24
@github-actions github-actions Bot added rust Pull requests that update Rust code pr:community Contribution from Cube.js community members. labels Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:community Contribution from Cube.js community members. rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant