Open KnightChess opened 4 days ago
@jonvex can you please review this
@KnightChess can you please explain what changes you made to the files with 1000+ added or removed lines of code. Thanks!
VERSION AS OF support digit string, contain hudi base timeline format - [yyyyMMddhhmmssSSS], will return less or equal snapshots TIMSTAMP AS OF spark provides a rich date expression, will return less or equal snapshots
@KnightChess do we add new syntax or change existing syntax in the patch?
Change Logs
After spark3.3 support TimeTravel SQL and Logical Plan, remove the implementation in hudi, remain
index
DML SQLcode detail: before spark3.3, spark not support timetravel sql, so hudi supports the full DQL query syntax for timetravel. now, we remove it, therefore, a large portion of the DQL syntax parsing will not be used; we only need to support Hudi's custom implementation of the DDL syntax related to indexing.
g4 file
queryStatement
dmlStatement
createTable
in HoodieSqlBase.g4, it's for timetravelindex
need.astBuilder
Impact
in spark, TIMESTAMP dataType is
TimestampType
, VERSION isString
. And the hoodie instance time format is not legal for spark to parse. And from the perspective of usage, the concept of HUDI's timestamp concept is more suitable for using VERSION, so in this pr:Risk level (write none, low medium or high below)
low
Documentation Update
spark Time Travel Query tutorial, update
Contributor's checklist