READ_PARQUET, READ_CSV, READ_JSON, READ_AVRO). Use it when you do not want to name the format up front. Like the other read TVFs, it accepts a LOCATION object or direct credentials, and reads a single file or a glob of files.
READ_FILES also has a shorthand: a string literal in the FROM clause is read as READ_FILES, so
SELECT * FROM READ_FILES('/data/events/2026-06-01.parquet'). This works for local paths and for object storage that does not need credentials (for example public Amazon S3 buckets); to pass credentials or a LOCATION, call READ_FILES(...) directly.
Format inference
The format is inferred by listing the objects the path points at and inspecting the most recent one’s name, after stripping any compression suffix (.gz, .zst, .br, …). The path itself does not need an extension: a directory or glob resolves from the files it matches, so s3://bucket/events/* containing only .json.gz objects reads as gzip-compressed JSON. Recognized extensions:
| Extension | Format |
|---|---|
.parquet | Parquet |
.csv | CSV |
.tsv | TSV (read as CSV with a tab delimiter) |
.json, .jsonl, .ndjson | JSON |
.avro | Avro |
.orc | ORC |
READ_FILES cannot infer the format; use the format-specific TVF (READ_PARQUET, READ_CSV, …) instead.
Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
LOCATION | The name of a location object that contains the Amazon S3 URL and credentials. Firebolt recommends using LOCATION to store credentials for authentication. For a comprehensive guide, see LOCATION objects. | TEXT |
PATTERN | When using LOCATION, an optional glob pattern to filter files within the location’s URL path, applied relative to the location’s base path. | TEXT |
URL | The location of your files. The expected format is s3://{bucket_name}/{full_file_path_glob_pattern}. A local path (file:// or an absolute path such as /data/sales.parquet) is supported only where local file system access is enabled. | TEXT |
COMPRESSION | The compression type of the input. If unset, it is inferred from the most recent object’s extension. | TEXT |
AWS_ACCESS_KEY_ID | The AWS access key ID. | TEXT |
AWS_SECRET_ACCESS_KEY | The AWS secret access key. | TEXT |
AWS_SESSION_TOKEN | The AWS session token. | TEXT |
AWS_ROLE_ARN | The AWS role arn. | TEXT |
AWS_ROLE_EXTERNAL_ID | The AWS role external ID. | TEXT |
STRUCT. CSV and TSV are read with default dialect options (comma or tab delimiter, no header row, types inferred). To control the CSV dialect (header, quote, delimiter, null string), use READ_CSV.