xiangfu0 opened a new pull request, #20305: URL: https://github.com/apache/pinot/pull/20305
Add `TableNameExtractor.visitReferencedTableIdentifiers` for callers that need table identifiers from a parsed SQL tree. A reference to `analytics.events` keeps both name components. The visitor follows referenced CTEs in their lexical scope, so an unused CTE does not add a table and an inner alias does not hide a physical table outside that scope. The API works on the existing Calcite tree. The Java client and controller can continue using the current name extraction API with its existing output. Validation covers qualified identifiers, CTE shadowing, unused and recursive CTEs, and table wrappers in `TableNameExtractorTest`. Scoped Spotless, Checkstyle, and license checks passed. -- 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]
