hililiwei opened a new pull request, #5029:
URL: https://github.com/apache/iceberg/pull/5029

   This PR is blocked on #4428 
   
   ## What is the purpose of the change
   
   Scan data using a specified tag or branch.
   
   ## Brief change log
   
   Add the following syntax
   SQL:
   ```sql
   * SELECT * FROM sample /*+ OPTIONS('tag'='t1')*/ ;
   * SELECT * FROM sample /*+ OPTIONS('branch'='t1')*/ ;
   ```
   API:
   
   ```java
       public Builder tag(String tag) {
         contextBuilder.useTag(tag);
         return this;
       }
   
       public Builder branch(String branch) {
         contextBuilder.useBranch(branch);
         return this;
       }
       public Builder startTag(String startTag) {
         contextBuilder.startTag(startTag);
         return this;
       }
   
       public Builder endTag(String endTag) {
         contextBuilder.endTag(endTag);
         return this;
       }
   ```
   
   cc @amogh-jahagirdar 


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to