You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add local aws credential renewal integration test #1121
I think we will need to leverage the OSS UC server's credential issurance ability to help us to finish the credential renewal. Also we may need to improve the S3CredentialTestFileSystem, so that we can assert the old and renewal credential step by step.
When I designed the streaming case, I found this issue:
5/10/21 16:06:19 INFO UnityCatalogServer: Unity Catalog server stopped.
org.apache.spark.sql.AnalysisException: The input source(delta) is different from the table `renewal`.`default`.`demo`'s data source provider(DELTA).
at org.apache.spark.sql.errors.QueryCompilationErrors$.inputSourceDiffersFromDataSourceProviderError(QueryCompilationErrors.scala:2265)
at org.apache.spark.sql.classic.DataStreamWriter.writeToV1Table$1(DataStreamWriter.scala:197)
at org.apache.spark.sql.classic.DataStreamWriter.toTable(DataStreamWriter.scala:208)
at io.unitycatalog.spark.auth.AwsCredentialRenewalTest.testRenewal(AwsCredentialRenewalTest.java:144)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
I think here we need to make it being a lower case.
So maybe currently, it's appropriately not good to use the streaming write job to validate the credential refresh, I think. Since the current streaming write code path does not use the CatalogTable's injected properties to construct the hadoop FileSystem, which means the credentials renewal won't take any effect because lacking the expected properties for filesystem.
Activity
openinx commentedon Oct 21, 2025
When I designed the streaming case, I found this issue:
I think here we need to make it being a lower case.
https://github.com/unitycatalog/unitycatalog/blob/main/connectors/spark/src/main/scala/io/unitycatalog/spark/UCSingleCatalog.scala#L279
openinx commentedon Oct 21, 2025
I found another issue. Currently, If I write the following streaming job.
Then it will produce the following plan:
which will use the DeltaSink to do the streaming writting, see:
https://github.com/delta-io/delta/blob/9db2794653e1a18fb0f190af03d5d159e54af15e/spark/src/main/scala/org/apache/spark/sql/delta/sources/DeltaSink.scala#L50-L60
While the problem is, currently our
DeltaLogwhich parsed fromDeltaSinkdoes not respect theCatalogTable's table properties.https://github.com/delta-io/delta/blob/86c611b9add5a46fb7beb881b964f5762e5314c4/spark/src/main/scala/org/apache/spark/sql/delta/DeltaLog.scala#L962-L976
while the
DeltaTableV2which was designed for catalog-based table do respect the catalog table's properites. https://github.com/delta-io/delta/blob/c833c47a09551a987097b9f3daea7eb05de086da/spark/src/main/scala/org/apache/spark/sql/delta/catalog/DeltaTableV2.scala#L116-L125So maybe currently, it's appropriately not good to use the streaming write job to validate the credential refresh, I think. Since the current streaming write code path does not use the
CatalogTable's injected properties to construct the hadoopFileSystem, which means thecredentialsrenewal won't take any effect because lacking the expected properties for filesystem.openinx commentedon Oct 22, 2025
The stacktrace is the following:
openinx commentedon Oct 24, 2025
Another problem is this, if we don't lower case the delta source name here: https://github.com/unitycatalog/unitycatalog/pull/1123/files#diff-b496bfc650c9a1c585fb5709e010388ca74382670b419be5ebf4faa1bc499dd4R279
Add local aws credential renewal integration test. (#1123)
openinx commentedon Oct 29, 2025
Closed via #1123, thanks @tdas for the careful reviewing.
[0.3] Add local aws credential renewal integration test.
[0.3] Add local aws credential renewal integration test. (#1195)