Skip to content

Conversation

@chenkovsky
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

map const wont be simplified, the comment says "TODO: support the optimization for Map type after support impl hash for it", but it seems that hash is already supported for map.

What changes are included in this PR?

remove the todo

Are these changes tested?

UT

Are there any user-facing changes?

No

@github-actions github-actions bot added optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels Nov 2, 2025
Copy link
Contributor

@adriangb adriangb left a comment

Choose a reason for hiding this comment

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

This seems reasonable but could you help me understand what the simplification is in the first place? Isn't the input already a ScalarValue / constant / literal?

@chenkovsky
Copy link
Contributor Author

I originally thought this was just a literal too. But it's map(List([x]), List([100])) on main branch.

@comphead comphead added this pull request to the merge queue Nov 5, 2025
Merged via the queue into apache:main with commit 6852d50 Nov 5, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants