caicancai commented on PR #44357: URL: https://github.com/apache/spark/pull/44357#issuecomment-1873341258
I found a bug when trying to push down date_add these date functions `date_add(date1, 1) = '2022-05-20'` will change `'2022-05-20' to 19132` before executing build(expr)  The problem is that an error occurs in V2ExpressionSQLBuilder ```scala case "=", "<>", "<=>", "<", "<=", ">", ">=" -> visitBinaryComparison(name, inputToSQL(e.children()[0]), inputToSQL(e.children()[1])); ``` Because inputToSQL(e.children()[1]) == inputToSQL(19132), but currently V2ExpressionSQLBuilder does not handle the situation accordingly.  -- 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]
