discord9 commented on PR #21908:
URL: https://github.com/apache/datafusion/pull/21908#issuecomment-4608626695

   > > The previous unwrap_cast optimization was default-allow: it would move 
the cast from the
   > > expression side to the literal side for virtually any CAST(column AS T)  
literal_T pattern.
   > > This is semantically unsafe for many casts — the rewritten predicate can 
match different rows
   > > than the original.
   > 
   > I am still missing what problem we are solving
   > 
   > Is the root cause this issue in Greptime?
   > 
   >     * [TIMESTAMP predicate incorrectly matches rows with higher fractional 
seconds 
GreptimeTeam/greptimedb#8214](https://github.com/GreptimeTeam/greptimedb/issues/8214)
   > 
   > 
   > If so, perhaps we can do a more targeted fix for that issue first to 
resolve the bug, and then we can contemplate a larger scale refactor of the 
code as a follow on.
   > 
   > Right now I fear we are blocking a bug fix behind a very large code code 
change, that might be good on its own, may also have non trivial knock on 
effects
   
   so this fix start exactly as you suggest a small blocklist(see 
565eed2231dfff96bfecdaba3613df73f3d5d69e) but as reviewer sugest a allowlist 
would be better, it was later changed to a allowlist, mabe we cn make a new pr 
for a quickfix for smaller blcoklist menawhile having enough tme to describe a 
proper allowlist and even more sophisticated optimize?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to