scx created HUDI-5196:
-------------------------
Summary: For spark with version greater than 3.2+, the query of
hudi table using spark sql supports reading parameter configuration.
Key: HUDI-5196
URL: https://issues.apache.org/jira/browse/HUDI-5196
Project: Apache Hudi
Issue Type: New Feature
Reporter: scx
{code:java}
// query snapshot table
select id, name, price, ts from $tableName1
['hoodie.datasource.query.type'=>'snapshot','as.of.instant'=>'$instant1']
// query incremental table
select id, name, price, ts from $tableName1
|[
|'hoodie.datasource.query.type'=>'incremental',
|'hoodie.datasource.read.begin.instanttime'=>'$instant1',
|'hoodie.datasource.read.end.instanttime'=>'$instant2'
|]
// query read_optimized table
select id, name, price, ts from $tableName1
['hoodie.datasource.query.type'=>'read_optimized']{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)