Class TableNameExtractionUtils

java.lang.Object
org.apache.beam.sdk.extensions.sql.TableNameExtractionUtils

public class TableNameExtractionUtils extends Object
Helper class to extract table identifiers from the query.

Supports queries:

   ... FROM table...
   ... FROM table1, table2 AS x...
   ... FROM table1 JOIN (LEFT, INNER, OUTER etc) table2 JOIN table3 ...
   ... FROM table1 UNION (INTERSECT etc) SELECT ...
 
  • Constructor Details

    • TableNameExtractionUtils

      public TableNameExtractionUtils()
  • Method Details

    • extractTableNamesFromNode

      public static List<TableName> extractTableNamesFromNode(@Nullable org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlNode node)