You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "nsivabalan (via GitHub)" <gi...@apache.org> on 2026/06/25 03:03:34 UTC
Re: [I] For spark with version greater than 3.2+, the query of hudi table using spark sql supports reading parameter configuration. [hudi]
nsivabalan commented on issue #15559:
URL: https://github.com/apache/hudi/issues/15559#issuecomment-4795445288
This feature request appears to be addressed in current master via table-valued functions, even though the originally proposed PR (#7182) with `tableName ['key'=>'value']` inline syntax was closed without merging.
Equivalent capabilities now available in Spark SQL:
```sql
-- snapshot query
select id, name, price, ts from hudi_query('tableName', 'snapshot');
-- read_optimized query
select id, name, price, ts from hudi_query('tableName', 'read_optimized');
-- incremental query
select id, name, price, ts from hudi_table_changes('tableName', 'latest_state', '<begin_instant>', '<end_instant>');
-- time travel (already supported)
select * from tableName timestamp as of '<instant>';
```
See `HoodieQuery.scala`, `HoodieTableChanges.scala`, and `TestHoodieTableValuedFunction.scala` for the implementation and tests. Closing as resolved-via-alternate-API would be reasonable; please reopen if the specific inline-options syntax is still desired.
--
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