I have a directory that contains a set of parquet files that have been partitioned. As such, there are subdirectories all of the form MyKey=XXX.
The structure is relatively large but I have a query that wants to use only the data from the maximum value for MyKey. I tried the trivial approach (i.e. select max(MyKey) from table) but found that it ended up scanning all records in the associated parquet files. I could avoid all of this is there was an easy way to obtain the known values for MyKey without having to scan the actual content. Other than going directly to hadoop (via FileSystem [scala] or Snakebite [python]), is there any other way to get the set of partitioned values? Thanks -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Query-partition-keys-for-indexed-parquet-input-tp25748.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
