Repository navigation
fix bug in key condition - #68354
fix bug in key condition#68354
Conversation
|
This is an automated comment for commit 207d160 with description of existing statuses. It's updated for the latest CI running ✅ Click here to open a full report in a separate page Successful checks
|
|
@CurtizJ What do you think? |
|
It seems Can we use Edit: it looks like workable! @jsc0218 PTAL |
| String result_name = "_" + func->getName() + "_" + toString(field.column_idx); | ||
| WriteBufferFromOwnString buf; | ||
| writeText("_", buf); | ||
| writePointerHex(func.get(), buf); |
There was a problem hiding this comment.
This function is only used in applyMonotonicFunctionsChainToRange. So you can just pass the index of function from array as a column name.
There was a problem hiding this comment.
but I think the lenth of the functions should be 1.
elements intDiv(a, 20) and intDiv(a, 50000) have there own monotonic functions chain which length is 1.
There was a problem hiding this comment.
@alexey-milovidov @CurtizJ PTAL, we need this fix
There was a problem hiding this comment.
Well, you are right. Maybe using a pointer as a name is not that bad.
alexey-milovidov
left a comment
There was a problem hiding this comment.
Our style guide mandates writing comments in the code.
This cannot be merged without comments.
I am not sure as I thought the same with you at the first glance, probably others can take a look for this point. |
It's not right to cache result column in
apply functiononly by function name, because the params may be different.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
fix bug in key condition
Documentation entry for user-facing changes
CI Settings (Only check the boxes if you know what you are doing):