Execute SQL queries against configured data sources
query
function executes SQL queries against configured data sources and returns the results as a pandas DataFrame. It supports all data source types (CSV, PostgreSQL, ClickHouse).
sql
(str): SQL query to executesource_name
(str): Name of the data source as configured in preswald.toml OR a path to a file (supports CSV, Parquet, and JSON)pd.DataFrame
: Query results as a pandas DataFrameget_df()
: For retrieving entire tables/datasets