multiprocessio / dsq

Commandline tool for running SQL queries against JSON, CSV, Excel, Parquet, and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search multiple files

AFgh24 opened this issue · comments

commented

Hello
I need to search in some parquet files
But it only searches the first file
It does not search the second or third file

dsq user1.parquet userdata2.parquet "SELECT * FROM {} WHERE user REGEXP 'test'" > result.csv

Please help me

You need to follow the multiple file syntax and use a UNION to go across them.

So (SELECT * FROM {1} UNION SELECT * FROM {2}) WHERE user REGEXP 'test'.