allisonport-db commented on PR #38823: URL: https://github.com/apache/spark/pull/38823#issuecomment-1352455011
> Does the SQL standard say anything about the restrictions of the generate expression? Can we allow `GENERATED AS rand()`? I think at least catalyst should have a rule to check the expression and make sure the data type is the same as column type. Checking for data type make sense. Other restrictions we can enforce - no UDFs - only deterministic functions - no subqueries - no window functions - no aggregate functions - no generator functions - interdependence with other generated columns -- 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]
