scxwhite opened a new pull request, #7182:
URL: https://github.com/apache/hudi/pull/7182

   ### Change Logs
   
   For spark with version greater than 3.2+, the query of hudi table using 
spark sql supports reading parameter configuration.
   
   on this pr,when can query hudi table
   
   ```sql
   // 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']
   ```
   
   ### Impact
   
   spark sql query.
   
   ### Risk level (write none, low medium or high below)
   
   low 
   ### Documentation Update
   
   _Describe any necessary documentation update if there is any new feature, 
config, or user-facing change_
   
   
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to