Skip to content

Fix CAST alias and large float formatting in EXPLAIN output#95

Merged
kyleconroy merged 2 commits intomainfrom
claude/fix-more-tests-NMQZj
Dec 30, 2025
Merged

Fix CAST alias and large float formatting in EXPLAIN output#95
kyleconroy merged 2 commits intomainfrom
claude/fix-more-tests-NMQZj

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

  • Always show alias for CAST expressions when wrapped in AliasedExpr,
    regardless of whether CAST uses AS syntax (CAST(x AS Type)) or comma
    syntax (CAST(x, 'Type'))

  • Use scientific notation for very large floats (>= 1e21) in EXPLAIN
    output to match ClickHouse's behavior

  • Update next-test command to show test with most pending statements
    instead of fewest

These changes fix 69 test files with numerous explain_todo statements.

- Always show alias for CAST expressions when wrapped in AliasedExpr,
  regardless of whether CAST uses AS syntax (CAST(x AS Type)) or comma
  syntax (CAST(x, 'Type'))

- Use scientific notation for very large floats (>= 1e21) in EXPLAIN
  output to match ClickHouse's behavior

- Update next-test command to show test with most pending statements
  instead of fewest

These changes fix 69 test files with numerous explain_todo statements.
@kyleconroy kyleconroy merged commit 37c13c5 into main Dec 30, 2025
1 check 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.

2 participants