rkkalluri commented on issue #6068:
URL: https://github.com/apache/hudi/issues/6068#issuecomment-1179769828

   I am able to force reading of just 1 partition with plain spark like
   
   
   scala> 
spark.read.format("parquet").option("basePath",basePath).load("/tmp/test_table/1").show()
   
+-------------------+--------------------+------------------+----------------------+--------------------+---+----+-------+
   
|_hoodie_commit_time|_hoodie_commit_seqno|_hoodie_record_key|_hoodie_partition_path|
   _hoodie_file_name| id|part|combine|
   
+-------------------+--------------------+------------------+----------------------+--------------------+---+----+-------+
   |  20220708143553165|20220708143553165...|                 1|                
     1|abb854c5-dbdc-4ec...|  1|   1|      1|
   
+-------------------+--------------------+------------------+----------------------+--------------------+---+----+-------+
   
   The equivalent version for hudi is not working though...it is reading data 
from all partitions and doing catalog file metadata collection like below.
   
   scala> 
spark.read.format("hudi").option("hoodie.metadata.enable","false").option("basePath",basePath).load("/tmp/test_table/1").show()
   
+-------------------+--------------------+------------------+----------------------+--------------------+---+-------+----+
   
|_hoodie_commit_time|_hoodie_commit_seqno|_hoodie_record_key|_hoodie_partition_path|
   _hoodie_file_name| id|combine|part|
   
+-------------------+--------------------+------------------+----------------------+--------------------+---+-------+----+
   |  20220708143553165|20220708143553165...|               196|                
   196|abb854c5-dbdc-4ec...|196|    196| 196|
   |  20220708143553165|20220708143553165...|               199|                
   199|abb854c5-dbdc-4ec...|199|    199| 199|
   |  20220708143553165|20220708143553165...|               190|                
   190|abb854c5-dbdc-4ec...|190|    190| 190|
   |  20220708143553165|20220708143553165...|               193|                
   193|abb854c5-dbdc-4ec...|193|    193| 193|
   |  20220708143553165|20220708143553165...|               194|                
   194|abb854c5-dbdc-4ec...|194|    194| 194|
   |  20220708143553165|20220708143553165...|               197|                
   197|abb854c5-dbdc-4ec...|197|    197| 197|
   |  20220708143553165|20220708143553165...|               195|                
   195|abb854c5-dbdc-4ec...|195|    195| 195|
   |  20220708143553165|20220708143553165...|               198|                
   198|abb854c5-dbdc-4ec...|198|    198| 198|
   |  20220708143553165|20220708143553165...|               192|                
   192|abb854c5-dbdc-4ec...|192|    192| 192|
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to