Select distinct query taking too long in databricks

2.7k views Asked by At

I ran this SQL query in databricks to check the distinct values of a column in a parquet file:

SELECT distinct country
FROM parquet_table

This took 1.31 hours to run. Am I doing something wrong here that such a simple query is taking so long?

0

There are 0 answers