Skip to content
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

CachedTableManager use refresh token to refresh urls #387

Merged
merged 3 commits into from
Sep 5, 2023

Conversation

charlenelyu-db
Copy link
Collaborator

@charlenelyu-db charlenelyu-db commented Sep 1, 2023

Use this link to review incremental changes.


This pr modifies CachedTableManager to support refresh token:

  • Change refresher func to take refreshToken: Option[String], and return (idToUrlMap, minUrlExpiration, newRefreshToken)
  • The refreshToken will be stored in the CachedTable
  • When refresh is needed for a cached table, call cachedTable.refresher(cachedTable.refreshToken) to update urls.

Note that the above change only applies to latest snapshot queries. For other types of queries, refreshToken will always be None.

This is part 3 of #383.

@charlenelyu-db charlenelyu-db force-pushed the refresh-token-spark branch 2 times, most recently from 02ddb7e to 22b25a3 Compare September 5, 2023 18:03
@charlenelyu-db charlenelyu-db merged commit f0924da into delta-io:main Sep 5, 2023
4 checks passed
@charlenelyu-db charlenelyu-db deleted the refresh-token-spark branch September 9, 2023 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants