Spark3: Make views that reference Iceberg tables show current data#1545
Merged
Conversation
aokolnychyi
commented
Oct 2, 2020
| .mode("append") | ||
| .save(location.toString()); | ||
|
|
||
| List<SimpleRecord> actual2 = spark.table("tmp").as(Encoders.bean(SimpleRecord.class)).collectAsList(); |
Contributor
Author
There was a problem hiding this comment.
This was failing for tables loaded through IcebergSource in Spark 3. Now, it matches Spark 2.
Contributor
Author
|
@rdblue I remember we had a note somewhere in the docs about this behavior but I couldn't find it. |
Contributor
|
+1 I think this is a reasonable fix that is more in line with user expectations than independent and never-changing data frames. |
rodmeneses
pushed a commit
to rodmeneses/iceberg
that referenced
this pull request
Jun 23, 2025
…che#1545) Adds a new configuration `token-refresh-mode` to provide alternative behaviour for token refresh used in RESTSessionCatalog. Potential values and its behaviour is listed below 1. legacy, retain existing token refresh behaviour as rely on token exchange workflow (grant type = "urn:ietf:params:oauth:grant-type:token-exchange") with OAuth2 server. This is the default behaviour from open source. 2. authenticate, by re-authenticate with using existing credential (grant type = "client_credentials") with OAuth2 server. This in intended to use together with IAS based authentication. ## Why do we need a new change? Existing token exchange workflow used by IAS (https://presidium.ase.apple.com/docs/security-ias/getting-started/) is intended for delegation for service-to-service communication. Iceberg OSS spec implementation of token refresh does not align with IAS requirements and we adopt suggestions from community per apache#12196 (comment). Co-authored-by: Steve (ASE) Zhang <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes views that reference Iceberg tables show up-to-date data with and without catalog cache.
See #1485 for more info.