iceberg: route unprefixed requests to the first table bucket (#10675)

This commit is contained in:
Chris Lu authored and GitHub committed 2026-08-09 22:20:13 -07:00
1 parent a2ff9cca27
commit c8cc56be91
3 files changed
+34

No files matched your search

+4
View File
@@ -1344,6 +1344,10 @@ func runMini(cmd *Command, args []string) bool {
tableBucketSpec := *miniTableBucket
if tableBucketSpec == "" {
tableBucketSpec = os.Getenv("S3_TABLE_BUCKET")
} else if os.Getenv("S3_TABLE_BUCKET") == "" {
// The catalog routes unprefixed requests to the first S3_TABLE_BUCKET
// entry; let the -tableBucket flag mean the same thing.
os.Setenv("S3_TABLE_BUCKET", tableBucketSpec)
}
if err := ensureMiniTableBuckets(tableBucketSpec); err != nil {
glog.Warningf("failed to ensure table buckets %q: %v", tableBucketSpec, err)