szehon-ho commented on PR #49840: URL: https://github.com/apache/spark/pull/49840#issuecomment-2644417195
Had a chat offline with @cloud-fan who suggest simplifying the analyzeExistence to be just the following bare bones code to resolve functions. ``` def fromSQL(sql: String): Expression = { CatalystSqlParser.parseExpression(sql).transformUp { case u: UnresolvedFunction => assert(u.nameParts.length == 1) assert(!u.isDistinct) FunctionRegistry.builtin.lookupFunction(FunctionIdentifier(u.nameParts.head), u.arguments) } } ``` Thanks for the suggestion, this simplifies it a lot. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org