xuzifu666 commented on PR #5052: URL: https://github.com/apache/calcite/pull/5052#issuecomment-4880049007
> 2bdf0e6 Originally the rewrite multiplied the aggregate by the scalar sub-query (agg * (SELECT 1 ... LIMIT 1)), which only type-checks for numeric aggregates — a non-numeric aggregate like MAX(<varchar>) would have thrown "Cannot apply '*' to VARCHAR". I've changed the rewrite to a type-agnostic form and added a quidem test for it which result is as expected. @mihaibudiu -- 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]
