-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spark: Don't allow branch_ usage with TIMESTAMP AS OF #10059
Conversation
|
||
// using branch_b1 in the table identifier and TIMESTAMP AS OF | ||
Assertions.assertThatThrownBy( | ||
() -> sql("SELECT * FROM %s.branch_b1 TIMESTAMP AS OF %s", tableName, snapshotId)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[minor] should we pass actual timestamp instead of snapshotId ? though I agree this error is hit before the timestamp parsing so testing like this is also sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch @singhpk234 I totally missed this. Would be good to fix this test to pass a timestamp just so someone reading it isn't confused!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops that was a copy/paste error. I've changed this to using now()
0beaf61
to
b3b85d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well, thanks @nastra !
fixes #10058 and applies the same as #9219 for
TIMESTAMP AS OF