Skip to main content

Local file (CSV/TSV)

Local file datasources read CSV, TSV, or other delimited flat files from a directory on the CloudQuant Data Liberator server or a mounted filesystem. This is the simplest file-based connection type and serves as the foundation for understanding all other file-based sources.
See Supported Data Formats for every file extension Liberator can ingest on this connection, including Parquet, Arrow, Excel, XML, HDF5, PSV (2.1+), and PCAP (2.2+).

Connection configuration

Required fields

The location field should point to a directory, not an individual file. CloudQuant Data Liberator will scan the directory for files matching the file_pattern in data_args.

Example connection

Dataset configuration (data_args)

All file-based datasources share the same data_args fields. These control how CloudQuant Data Liberator finds, parses, and interprets your files.

Required fields

Optional fields

Set fname_dt_approx_seconds to 86400 for daily files. This helps CloudQuant Data Liberator skip files outside the query’s time range, significantly improving performance for large directories.

Complete example

Below is a full configuration showing both the connection and a dataset for daily trade CSV files.

Connection

Dataset

Ensure the CloudQuant Data Liberator process has read permissions on the location directory and all files within it. Permission errors will cause silent failures during query execution.

Tab-separated files (TSV)

For TSV files, set sep_override to "\t":

Composite key example

When the symbol is constructed from multiple columns:
This produces keys like NYSE_AAPL, NASDAQ_MSFT, etc.

Multiple datetime columns

When the date and time are in separate columns:
CloudQuant Data Liberator concatenates the columns with a space before parsing, so the effective format becomes "%Y-%m-%d %H:%M:%S.%f".