nandini57 commented on issue #1582:
URL: https://github.com/apache/incubator-hudi/issues/1582#issuecomment-625365934
Turns out, incremental query is what can get me the data back in time.Thanks
again
public static void audit(SparkSession spark,String tablePath,Long
commitTime) {
spark.read().format("org.apache.hudi")
.option(DataSourceReadOptions.QUERY_TYPE_OPT_KEY (),
DataSourceReadOptions.QUERY_TYPE_INCREMENTAL_OPT_VAL())
.option(DataSourceReadOptions.BEGIN_INSTANTTIME_OPT_KEY(),
commitTime -1 )
.option(DataSourceReadOptions.END_INSTANTTIME_OPT_KEY(),
commitTime)
.load(tablePath).show ();
}
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]