apache / amoro

Apache Amoro (incubating) is a Lakehouse management system built on open data lake formats.
https://amoro.apache.org/
Apache License 2.0
747 stars 260 forks source link

[Hotfix] Fix the value of authType is always null #2964

Closed xleoken closed 1 week ago

xleoken commented 1 week ago

Why are the changes needed?

As title.

Brief change log

We should use CatalogMeta#getAuthConfigs instead of CatalogMeta#getCatalogProperties.

CatalogMeta(catalogName:test, catalogType:custom, storageConfigs:{storage.type=S3}, authConfigs:{auth.type=ak/sk}, catalogProperties:{s3.access-key-id=c, s3.secret-access-key=b, table.self-optimizing.group=test, s3.endpoint=a, catalog-impl=org.apache.iceberg.rest.ABCD, table-formats=ICEBERG, client.region=a})

How was this patch tested?

Documentation

zhoujinsong commented 1 week ago

Hi, can you help me confirm the impact of this issue? This will determine whether the fix needs to be included in version 0.7.0.

xleoken commented 1 week ago

Hi, can you help me confirm the impact of this issue? This will determine whether the fix needs to be included in version 0.7.0.

ok, let's wait the ci first.

xleoken commented 1 week ago

hi @zhoujinsong, there is the same logic here, we just need to keep one of them, what do you think?

image

xleoken commented 1 week ago

Thanks for reviewing @zhoujinsong. Close this issue due to https://github.com/apache/amoro/pull/2972