Skip to content

Conversation

@hililiwei
Copy link
Contributor

@hililiwei hililiwei commented Jul 18, 2022

Reading data from a specified Ref in the following ways.

  1. USE
USE { BRANCH \ TAG } refName
  1. table path
SELECT * FROM table.at_branch_{refName}

SELECT * FROM table.at_branch_{refName}.at_timestamp__{timestamp}

SELECT * FROM table.at_tag_{refName}

This is mainly in reference to our current implementation of time travel.

SELECT * FROM table.at_timestamp__{timestamp}

It depends on #4428 #5364

@hililiwei hililiwei changed the title Spark: Support User Branch\Tag to read from Snapshot ref Spark: Spark SQL Support User Branch\Tag to read from Snapshot ref Jul 18, 2022
@hililiwei hililiwei changed the title Spark: Spark SQL Support User Branch\Tag to read from Snapshot ref Spark: Spark SQL Support User Branch\Tag to read from Snapshot ref Jul 18, 2022
@hililiwei hililiwei changed the title Spark: Spark SQL Support User Branch\Tag to read from Snapshot ref Spark: Spark SQL Support Use Branch\Tag to read from Snapshot ref Jul 18, 2022
@hililiwei hililiwei force-pushed the spark_sql_use_ref branch from d3adfe6 to 178e80b Compare July 18, 2022 09:05
@github-actions github-actions bot removed the API label Jul 18, 2022
@hililiwei hililiwei changed the title Spark: Spark SQL Support Use Branch\Tag to read from Snapshot ref Spark: Spark SQL read from Snapshot ref Jul 27, 2022
@hililiwei hililiwei force-pushed the spark_sql_use_ref branch from 178e80b to bd02931 Compare July 27, 2022 15:17
@github-actions github-actions bot added the API label Jul 27, 2022
@hililiwei hililiwei force-pushed the spark_sql_use_ref branch from bd02931 to 7fb2485 Compare July 27, 2022 15:30
@dungdm93
Copy link
Contributor

I prefer SELECT * FROM table@refName if it's possible

@hililiwei hililiwei force-pushed the spark_sql_use_ref branch from 7fb2485 to 478236b Compare July 29, 2022 02:10
@hililiwei hililiwei force-pushed the spark_sql_use_ref branch from 478236b to e413a7a Compare July 29, 2022 09:18
@hililiwei
Copy link
Contributor Author

I prefer SELECT * FROM table@refName if it's possible

Unfortunately, Spark does not support this syntax.
I could try, but not optimistic.

@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 17, 2024
@github-actions
Copy link

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions bot closed this Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants