Add src/remote_query.py CLI module enabling the AI agent to run SQL queries spanning local Parquet tables and remote BigQuery tables in a single DuckDB session on the server. Two-phase protocol: BQ sub-queries (--register-bq) fetch filtered/aggregated data, then DuckDB SQL (--sql) joins everything. Safety: COUNT(*) pre-check, memory estimation (2GB cap), row limits (500K per BQ sub-query, 100K final result). Changes: - New src/remote_query.py with CLI, BQ registration, output formatting - Add bq_entity_type field to TableConfig (view vs table routing) - Extract create_local_views() from duckdb_manager.py for reuse - Update claude_md_template.txt with remote query agent instructions - Update example configs with remote_query section and docs - 52 new tests (42 remote_query + 10 bq_entity_type), all passing |
||
|---|---|---|
| .. | ||
| future | ||
| metrics/revenue | ||
| setup | ||
| testing | ||
| architecture.md | ||
| auto-install.md | ||
| CONFIGURATION.md | ||
| DATA_SOURCES.md | ||
| DEPLOYMENT.md | ||
| PLAN.md | ||
| QUICKSTART.md | ||
| sample-data.md | ||
| theme-reference.html | ||