bk-mz commented on issue #10511: URL: https://github.com/apache/hudi/issues/10511#issuecomment-1903567882
for snapshot: 441,483,112, query time 28141ms for read-optimized: 22,887,045, query time 26054ms.   ``` scala> spark.time({ | val df = spark.read | .format("org.apache.hudi") | .option("hoodie.datasource.query.type", "read_optimized") | .load("s3://com.twilio.messaging.mdp.datalake.tables.mdp.pffm.pii.temp/table/") | | val count = df.filter( | (df("year") === 2024) && | (df("month") === 1) && | (df("day") === 16) && | (df("account_sid") === "AC5aa523aa6e1271134f9adda35cd08c7c") | ).count() | | println(s"Count: $count") | }) 24/01/22 09:05:38 WARN SparkStringUtils: Truncated the string representation of a plan since it was too large. This behavior can be adjusted by setting 'spark.sql.debug.maxToStringFields'. Count: 47 Time taken: 26054 ms ``` ``` scala> spark.time({ | val df = spark.read | .format("org.apache.hudi") | .option("hoodie.datasource.query.type", "snapshot") | .load("s3://com.twilio.messaging.mdp.datalake.tables.mdp.pffm.pii.temp/table/") | | val count = df.filter( | (df("year") === 2024) && | (df("month") === 1) && | (df("day") === 16) && | (df("account_sid") === "AC5aa523aa6e1271134f9adda35cd08c7c") | ).count() | | println(s"Count: $count") | }) 24/01/22 09:09:03 WARN SparkStringUtils: Truncated the string representation of a plan since it was too large. This behavior can be adjusted by setting 'spark.sql.debug.maxToStringFields'. Count: 47 Time taken: 28141 ms ``` Okay, your point stands, the number of output rows are indeed different. Though, how can we explain same query times? -- 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]
