Expand description
Rewrite expressions in preparation for files being scanned, such as scan-metadata scalar UDFs.
Functions like file_row_index() and input_file_name() are placeholders
whose value is only known during a file scan. The helpers here replace those
UDFs with ordinary physical expressions bound to the current file: a column
reference into a source-provided row-index column, or a per-file literal, etc.
Functionsยง
- expr_
references_ scalar_ udf - Return true if a
PhysicalExprreferences scalar UDFT. - rewrite_
file_ row_ index_ expr - Rewrite
file_row_index()in aPhysicalExprto read from a source-provided row-index column. - rewrite_
file_ row_ index_ projection - Rewrite
file_row_index()in pushedProjectionExprsto read from a source-provided row-index column. - rewrite_
input_ file_ name_ in_ projection - Rewrite
input_file_name()in pushedProjectionExprsto a per-fileLiteralholdingfile_name.