SQL over Parquet files for evening market research. Educational only. Not investment advice.
You searched for duckdb sql on parquet. After a full day of work, you do not need a 400-page manual—you need a why-first path that fits one evening: understand the angle (SQL over Parquet files for evening market research), run a tiny example, and know what not to claim.
This hub article is educational only. Not investment advice. It will not pick stocks, size positions, or promise edge.
Tool focus: duckdb.
import duckdb
import pyarrow as pa
import pyarrow.parquet as pq
# write a tiny parquet
table = pa.table({"date": ["2024-01-02","2024-01-03","2024-01-03"],
"ticker": ["AAPL","AAPL","MSFT"],
"close": [180.0, 181.2, 370.5]})
pq.write_table(table, "/tmp/toy_bars.parquet")
con = duckdb.connect()
print(con.execute("""
SELECT ticker, avg(close) AS avg_close
FROM read_parquet('/tmp/toy_bars.parquet')
WHERE ticker = 'AAPL'
GROUP BY 1
""").fetchdf())
Run it in a throwaway venv. If an import is missing, install only what you need for tonight—do not boil the ocean.
You can explain SQL over Parquet files for evening market research in two sentences, show one chart or printout, and list one risk. That is enough progress for an after-work session.
Tomorrow, connect this tool to the adjacent skill (data hygiene, validation, or a simple dashboard)—still educational, still not investment advice.
Educational only. Not investment advice.