final class TableFunctionRule
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Lowers XMLTABLE and JSON_TABLE in FROM.

Rule: PG-TABLE-FUNCTION-LOWER-001. Scope: xmltable, xmltable_column_list, xmltable_column_el, xmltable_column_option_list, xmltable_column_option_el, xml_namespace_list, xml_namespace_el, json_table, json_table_path_name_opt, json_table_column_definition_list, json_table_column_definition, path_opt, json_table_column_path_clause_opt. Constructors: XmlTable, XmlNamespace, XmlTableColumn, XmlColumnOption, JsonTable, JsonOrdinalityColumn, JsonValueColumn, JsonExistsColumn, JsonNestedColumns. The PASSING, FORMAT, wrapper, quotes and behavior clauses are lowered by the invocation family. The PATH word of NESTED is optional. Termination: lists are flattened iteratively; nested columns recurse on the tree depth. Source: https://www.postgresql.org/docs/17/functions-xml.html#FUNCTIONS-XML-PROCESSING-XMLTABLE, https://www.postgresql.org/docs/17/functions-json.html#FUNCTIONS-SQLJSON-TABLE. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 10§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 10

Relations§

Instantiated in 1
Method calls 4