How can I filter data in an external table to only include rows from a specific Parquet file?
Use the source_file_name virtual column to filter rows based on the Parquet file name. For example:
SELECT $source_file_name, *
FROM external_table
WHERE $source_file_name ILIKE '%filename.parquet%';
This query retrieves rows where the source_file_name contains the specified file name. %filename.parquet% can be replaced with any pattern to match your file name.
For more information, see Using metadata virtual columns docs