You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "bithw1 (via GitHub)" <gi...@apache.org> on 2023/04/03 12:09:42 UTC

[GitHub] [hudi] bithw1 opened a new issue, #8370: [SUPPORT]What's the difference between time-travel-query and point-in-time-query in the doc.

bithw1 opened a new issue, #8370:
URL: https://github.com/apache/hudi/issues/8370

   I am reading at https://hudi.apache.org/docs/quick-start-guide#time-travel-query and https://hudi.apache.org/docs/quick-start-guide#point-in-time-query.
   
   
   Below are the two examples for the time travel query and point in time query. But it looks to me that these two queries are doing the same thing:  they are both doing the `snapshot query` until the time:20210728141108100.
   
   Not sure I have understood correctly ,but I wonder why the query examples have two different names(time travel query vs point in time query).
   
   
   For the time travel query, the example in the doc is:
   
   ```
   spark.read.
     format("hudi").
     option("as.of.instant", "20210728141108100").
     load(basePath)
   
   ```
   
   For the point in time query, the example in the doc is:
   
   ````
   val beginTime = "000"  /// the begin time is 000,denoting the earlist commit
   val endTime = "20210728141108100"
   
   //incrementally query data
   val tripsPointInTimeDF = spark.read.format("hudi").
     option(QUERY_TYPE_OPT_KEY, QUERY_TYPE_INCREMENTAL_OPT_VAL).
     option(BEGIN_INSTANTTIME_OPT_KEY, beginTime).
     option(END_INSTANTTIME_OPT_KEY, endTime).
     load(basePath)
   tripsPointInTimeDF.createOrReplaceTempView("hudi_trips_point_in_time")
   spark.sql
   
   ````
   
   
   


-- 
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: commits-unsubscribe@hudi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] bithw1 closed issue #8370: [SUPPORT]What's the difference between time-travel-query and point-in-time-query in the doc.

Posted by "bithw1 (via GitHub)" <gi...@apache.org>.
bithw1 closed issue #8370: [SUPPORT]What's the difference between time-travel-query and point-in-time-query in the doc. 
URL: https://github.com/apache/hudi/issues/8370


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] ad1happy2go commented on issue #8370: [SUPPORT]What's the difference between time-travel-query and point-in-time-query in the doc.

Posted by "ad1happy2go (via GitHub)" <gi...@apache.org>.
ad1happy2go commented on issue #8370:
URL: https://github.com/apache/hudi/issues/8370#issuecomment-1494248024

   @bithw1  If I am not wrong, time travel queries means how the table looked at that time. Incremental queries will give the data coming/commited between that time range.
   
   If we use beginTime as "000" then incremental query also should behave exact same as time travel query. 
   


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] bithw1 commented on issue #8370: [SUPPORT]What's the difference between time-travel-query and point-in-time-query in the doc.

Posted by "bithw1 (via GitHub)" <gi...@apache.org>.
bithw1 commented on issue #8370:
URL: https://github.com/apache/hudi/issues/8370#issuecomment-1495169282

   Thanks @ad1happy2go , we have the same understanding,thanks.


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org