You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "tuantran0910 (via GitHub)" <gi...@apache.org> on 2026/05/01 13:50:44 UTC
[PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
tuantran0910 opened a new pull request, #62988:
URL: https://github.com/apache/doris/pull/62988
### What problem does this PR solve?
Issue Number: close #62987
Currently, Doris's Iceberg REST catalog only supports `none` and `oauth2` security types. Users running Google Cloud Lakehouse with Iceberg REST catalogs need a way to authenticate using Google's native `GoogleAuthManager` via Application Default Credentials (ADC).
### Solution
This PR adds a new `google` security type to `IcebergRestProperties` that configures the Iceberg REST client to use `org.apache.iceberg.gcp.auth.GoogleAuthManager` for authentication, following the official [Google Cloud Lakehouse documentation](https://docs.cloud.google.com/lakehouse/docs/lakehouse-iceberg-rest-catalog).
Main changes:
- Added `GOOGLE` to the `Security` enum in `IcebergRestProperties`
- Added `addGoogleProperties()` method that sets `rest.auth.type` to the fully qualified `GoogleAuthManager` class name
- Added new connector properties: `iceberg.rest.io-impl`, `iceberg.rest.google.user-project`, `iceberg.gcs.oauth2.token`
- Added explicit `iceberg-gcp` and `google-cloud-storage` dependencies to `fe-core/pom.xml`
- Added 5 new test cases covering Google auth configuration
### How to use
```sql
CREATE CATALOG lakehouse PROPERTIES (
"type" = "iceberg",
"iceberg.catalog.type" = "rest",
"iceberg.rest.uri" = "https://biglake.googleapis.com/iceberg/v1/restcatalog",
"iceberg.rest.security.type" = "google",
"iceberg.rest.io-impl" = "org.apache.iceberg.gcp.gcs.GCSFileIO",
"iceberg.rest.google.user-project" = "my-billing-project",
"warehouse" = "gs://my-bucket/warehouse/"
);
```
### Release note
**Features**
- [Iceberg] Support Google Authentication (GoogleAuthManager) for Iceberg REST catalog
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6523560183
<details>
<summary>ClickBench: <b>Total hot run time: 24.23 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 0f41aa4a7d261ea87b04e23976e9430b4f1a21ec, data reload: false
query1 0.00 0.00 0.01
query2 0.10 0.05 0.04
query3 0.26 0.08 0.08
query4 1.61 0.10 0.10
query5 0.24 0.24 0.25
query6 1.17 0.68 0.66
query7 0.03 0.01 0.00
query8 0.06 0.04 0.04
query9 0.40 0.35 0.34
query10 0.57 0.61 0.57
query11 0.20 0.14 0.15
query12 0.18 0.15 0.15
query13 0.50 0.48 0.49
query14 1.03 1.02 1.02
query15 0.63 0.62 0.60
query16 0.36 0.35 0.33
query17 1.15 1.15 1.11
query18 0.22 0.21 0.19
query19 2.12 2.00 1.93
query20 0.02 0.02 0.01
query21 15.50 0.18 0.13
query22 4.97 0.06 0.05
query23 16.26 0.32 0.13
query24 3.15 0.60 0.44
query25 0.11 0.07 0.06
query26 1.42 0.21 0.14
query27 0.04 0.05 0.04
query28 3.19 0.73 0.37
query29 12.50 4.04 3.22
query30 0.28 0.14 0.11
query31 2.77 0.56 0.33
query32 3.23 0.59 0.51
query33 3.14 3.21 3.16
query34 15.22 3.98 3.40
query35 3.30 3.34 3.32
query36 0.57 0.46 0.43
query37 0.09 0.07 0.06
query38 0.05 0.04 0.04
query39 0.04 0.03 0.03
query40 0.18 0.14 0.15
query41 0.09 0.03 0.03
query42 0.04 0.03 0.03
query43 0.04 0.03 0.04
Total cold run time: 97.03 s
Total hot run time: 24.23 s
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6849663139
<!-- doris-repo-review:v1:begin -->
### Local pipeline review — ✅ PASS
```yaml
schema: doris-repo-review/v1
status: PASS
pr: apache/doris#62988
commit: 8c8306ac4a795958e1ee961972e17f2c57e0a024
base: 5684b974c2bcefbd000a2671fc7b2856f9579240
reviewed_at: 2026-11-13T16:54+07:00
reviewer: tuantran0910
model: claude-opus-5-5
effort: medium
findings: {blocker: 0, major: 0, minor: 0, nit: 1}
rounds: 1
converged: true
```
**Notes for maintainers**
- Reviewed at `medium` effort, which is outside the `xhigh`/`max` allowlist, so this is not a pipeline-equivalent receipt.
- Reviewed commit is `8c8306a`; the current head `9686543` only adds glue to `gcsNonNativeNonRestCatalogsKeepTheirSdkDefaultFileIo` (the one Nit), test-only.
- Unit tests were not run locally (no thirdparty toolchain); relying on CI `run buildall`.
<sub>Reviewed locally with the `doris-repo-review` pipeline. Repository policy may accept this
receipt for the matching commit; it is not a human Apache approval.</sub>
<!-- doris-repo-review:v1:end -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "suxiaogang223 (via GitHub) via commits" <co...@doris.apache.org>.
suxiaogang223 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7089881437
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub)" <gi...@apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-4414373940
/review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "lsy3993 (via GitHub)" <gi...@apache.org>.
lsy3993 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6517866707
run compile
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6912829680
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "suxiaogang223 (via GitHub) via commits" <co...@doris.apache.org>.
suxiaogang223 merged PR #62988:
URL: https://github.com/apache/doris/pull/62988
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub)" <gi...@apache.org>.
tuantran0910 commented on code in PR #62988:
URL: https://github.com/apache/doris/pull/62988#discussion_r4403520619
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:
##########
@@ -533,10 +534,21 @@ public static void appendRestProperties(Map<String, String> opts, IcebergRestMet
// Timeouts: legacy fields default non-blank, so they are effectively always emitted.
opts.put(REST_CONNECTION_TIMEOUT_MS_KEY, rest.getConnectionTimeoutMs());
opts.put(REST_SOCKET_TIMEOUT_MS_KEY, rest.getSocketTimeoutMs());
+ putIfNotBlank(opts, CatalogProperties.FILE_IO_IMPL, rest.getIoImpl());
+ putIfNotBlank(opts, "header.x-goog-user-project", rest.getGoogleUserProject());
+ putIfNotBlank(opts, "gcs.oauth2.token", rest.getGcsOauth2Token());
Review Comment:
Thanks, both points check out. I walked P1 along the same paths before replying:
- FE side GCS config is HMAC only. `GcsFileSystemProperties` says the Google JSON API is intentionally not used because it only accepts OAuth2, and its Hadoop config falls back to `AnonymousAWSCredentialsProvider` when no keys are set.
- BE has no OAuth2 consumer at all. `StorageAdapter.alignS3FamilyBackendMap` emits `AWS_ACCESS_KEY`/`AWS_SECRET_KEY` and sets `AWS_CREDENTIALS_PROVIDER_TYPE=ANONYMOUS` when both are blank, and `S3ClientFactory` then builds `AnonymousAWSCredentialsProvider`. There is no `gcs`/`oauth` code under `be/src`.
- Vended credentials do not close it, as you said: `CredentialUtils` keeps the `gs.` prefix but not `gcs.`, and even a forwarded `gcs.oauth2.token` would have nothing to consume it on BE.
So I took your second option and scoped this PR, rather than folding a BE auth path in. The PR description now has a "Supported scope and limitations" section and the example requires `gs.access_key` / `gs.secret_key` (GCS interop keys). While checking this I also found the metadata-table case is not purely FE-side: `$files`/`$manifests` tasks are deserialized and executed on BE, where `GCSFileIO` builds its own client, so those need `iceberg.gcs.oauth2.token` or ADC on the BE hosts. That is documented too.
One question on the follow-up you suggested: for the "google auth on gs:// without HMAC keys" case, would you prefer a hard error at CREATE CATALOG or a warning? Doris convention looks like hard validation (Glue throws when neither `glue.access_key` nor `glue.role_arn` is set, for the same "no default credential chain" reason), but a hard error would also reject public-bucket and metadata-only catalogs, so I did not add either yet. Happy to add whichever you prefer, and a BE-native Google read path (token minting/refresh on FE plus a Bearer path in BE) is clearly a separate change.
##########
fe/fe-connector/fe-connector-iceberg/pom.xml:
##########
@@ -112,6 +112,20 @@ under the License.
<version>${iceberg.version}</version>
</dependency>
+ <!-- GoogleAuthManager and GCSFileIO are loaded by name inside the connector plugin. -->
+ <dependency>
+ <groupId>org.apache.iceberg</groupId>
+ <artifactId>iceberg-gcp</artifactId>
Review Comment:
Fixed in d301da585e. The plugin now carries `iceberg-gcp` and `google-cloud-storage` at runtime scope, with `google-cloud-storage` pinned to the 2.67.0 the FE connector bundles. `iceberg-gcp` names no Google SDK dependency of its own (`google-cloud-storage` is compileOnly upstream and absent from its pom), so the client `GCSFileIO` builds from the task properties has to be named as well.
Coverage added:
- `scansAFilesMetadataTableFromASerializedTask`: a `$files` scan over a local table, which is the shape that carries `table.io()` across the wire (previously only `$snapshots`, a StaticDataTask, was covered).
- `deserializesTheGcsFileIoATaskCarries`: serialize an initialized `GCSFileIO`, deserialize it through the real `IcebergSerializationCompat` path, then build the `Storage` client from the task properties (`gcs.no-auth` so the test does not depend on the machine's ADC). This fails at compile time if either dependency is removed, and with a ClassNotFoundException before the fix.
Verification: 14 plugin unit tests pass; the built plugin directory (218 jars) passes `tools/be-java-plugins/check_plugin_layout.py`, and on the plugin classpath alone the GCSFileIO deserializes and its client builds as `StorageImpl`.
What is still not covered, same caveat as your findings: a `$files` query against a real GCS bucket with real credentials. I do not have a GCP environment here. I also left the "reported as a different Iceberg version" message in `IcebergSerializationCompat` untouched, since that predates this change and deserves its own fix; say the word if you want it in this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub) via commits" <co...@doris.apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6602104004
<details>
<summary>TPC-H: <b>Total hot run time: 28985 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit f2ba788f21391c7bfc84f6738ea1607f6600e720, data reload: false
------ Round 1 ----------------------------------
============================================
q1 17571 5174 5069 5069
q2 2138 354 299 299
q3 10168 1394 845 845
q4 4686 459 335 335
q5 7434 813 535 535
q6 182 184 155 155
q7 760 809 623 623
q8 9251 1336 1104 1104
q9 5498 4213 4225 4213
q10 6827 1283 1036 1036
q11 427 260 233 233
q12 637 417 297 297
q13 18069 3663 3055 3055
q14 273 270 253 253
q15 q16 726 744 674 674
q17 1193 748 562 562
q18 6908 6138 6094 6094
q19 1096 949 611 611
q20 393 344 224 224
q21 5436 2546 2468 2468
q22 369 336 300 300
Total cold run time: 100042 ms
Total hot run time: 28985 ms
----- Round 2, with runtime_filter_mode=off -----
============================================
q1 5963 5885 6186 5885
q2 743 589 577 577
q3 5643 5728 5357 5357
q4 2021 2193 1572 1572
q5 5727 5768 5609 5609
q6 243 187 155 155
q7 2289 1956 1787 1787
q8 2958 2593 2702 2593
q9 7942 7534 7454 7454
q10 3635 3589 3166 3166
q11 580 424 383 383
q12 650 674 497 497
q13 3314 3629 3088 3088
q14 288 290 267 267
q15 q16 672 721 617 617
q17 7720 6990 6881 6881
q18 13052 12180 12939 12180
q19 916 789 794 789
q20 2141 2176 1921 1921
q21 5535 4695 4924 4695
q22 503 491 397 397
Total cold run time: 72535 ms
Total hot run time: 65870 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6849609299
PASS
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "lsy3993 (via GitHub)" <gi...@apache.org>.
lsy3993 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6517869978
run feut
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7003997513
<!-- doris-repo-review:v1:begin -->
### Local pipeline review — ✅ PASS
```yaml
schema: doris-repo-review/v1
status: PASS
pr: apache/doris#62988
commit: e4bf941b2b9f37b5f73972e4f38f449388d4504d
base: 25de3bf8cc627ad232d19c41629fe9ef5b03bdfa
reviewed_at: 2026-11-19T15:34+07:00
reviewer: tuantran0910
model: claude-opus-5-5
effort: xhigh
findings: {blocker: 0, major: 0, minor: 0, nit: 0}
rounds: 1
converged: true
```
**Notes for maintainers**
- No finding is flagged as a regression against the merge base.
- `fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:504-510`: the raw `fs.gs.*` default for REST catalogs now has a negative test (`fe/fe-connector/fe-connector-iceberg/src/test/java/org/apache/doris/connector/iceberg/IcebergCatalogFactoryTest.java:994-1011`). It covers hms, hadoop, jdbc and glue, which are every non-REST flavor that reaches this code; dlf and s3tables are built by other paths.
- REST catalogs with no GCS configuration at all still resolve `gs://` to `GCSFileIO` with ADC, where the merge base used `HadoopFileIO`. The author kept the default gated on `fs.gs.*` keys so it does not replace a REST server's `/v1/config` `io-impl`; maintainers may want to settle that trade-off on thread r4623541395.
- The pinned `io-impl` defaults are client properties, so they replace an `io-impl` that a REST server sends in its `/v1/config` `defaults` (Apache Gravitino does). The PR body declares this, and setting `iceberg.rest.io-impl` keeps the server's choice.
- `security.type=google` is covered by unit tests only. No test exercises live Google OAuth or a BigLake endpoint.
<sub>Reviewed locally with the `doris-repo-review` pipeline. Repository policy may accept this receipt for the matching commit; it is not a human Apache approval.</sub>
<!-- doris-repo-review:v1:end -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6276913394
<details>
<summary>TPC-H: <b>Total hot run time: 28207 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 08202970cdb959e4a408ee2f068513c1fc68bb21, data reload: false
------ Round 1 ----------------------------------
============================================
q1 17573 5123 5013 5013
q2 2102 305 260 260
q3 10253 1369 824 824
q4 4696 456 334 334
q5 7456 794 519 519
q6 184 181 150 150
q7 741 780 594 594
q8 9263 1379 1005 1005
q9 5470 4144 4152 4144
q10 6827 1295 1023 1023
q11 434 246 223 223
q12 638 390 274 274
q13 18120 3628 3024 3024
q14 274 266 243 243
q15 q16 757 714 661 661
q17 1199 767 594 594
q18 7106 6194 6117 6117
q19 1104 954 605 605
q20 385 325 224 224
q21 4956 2116 2256 2116
q22 353 290 260 260
Total cold run time: 99891 ms
Total hot run time: 28207 ms
----- Round 2, with runtime_filter_mode=off -----
============================================
q1 5580 5580 5574 5574
q2 666 608 514 514
q3 5261 5395 4933 4933
q4 2001 2126 1541 1541
q5 5281 5171 5481 5171
q6 263 213 163 163
q7 2369 2097 1893 1893
q8 3024 2913 2710 2710
q9 8123 7946 8133 7946
q10 3744 3654 3209 3209
q11 605 449 411 411
q12 713 677 516 516
q13 3407 3944 3220 3220
q14 305 321 287 287
q15 q16 673 693 640 640
q17 8228 7489 7417 7417
q18 12898 12217 12882 12217
q19 913 780 783 780
q20 2095 2124 1920 1920
q21 5596 4606 4685 4606
q22 502 443 393 393
Total cold run time: 72247 ms
Total hot run time: 66061 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub) via commits" <co...@doris.apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6600336171
# FE UT Coverage Report
Increment line coverage `` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62988_f2ba788f21391c7bfc84f6738ea1607f6600e720/fe_increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62988_f2ba788f21391c7bfc84f6738ea1607f6600e720/fe_report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on code in PR #62988:
URL: https://github.com/apache/doris/pull/62988#discussion_r4624493209
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:
##########
@@ -455,6 +459,18 @@ public static Map<String, String> buildCatalogProperties(IcebergCatalogPropertie
}
chosenS3.ifPresent(storage -> storage.toBackendProperties().ifPresent(backend -> {
Optional<GcsAuth> auth = GcsAuthResolver.resolve(backend.toMap());
+ // Keep explicit FileIO choices. The plugin bundles iceberg-gcp, so upstream ResolvingFileIO
+ // routes gs to GCSFileIO whenever that class is loadable - independently of which GCS
+ // credential mode is configured - and drops the fs.gs.* / fs.s3a.* configuration Doris
+ // builds for GCS. Native ADC / COMPUTE_ENGINE bindings always get the pin (they emit the
+ // S3FileIO dialect below). HMAC and anonymous bindings get it only on REST, the one flavor
+ // whose SDK default is ResolvingFileIO; hms / hadoop / jdbc default to HadoopFileIO and glue
+ // to S3FileIO, and HMS emits no S3FileIO options, so the pin would send its s3/s3a paths to
+ // an unconfigured S3FileIO.
+ auth.filter(gcsAuth -> gcsAuth.getNativeCredential().isPresent()
+ || IcebergCatalogProperties.TYPE_REST.equals(flavor))
+ .ifPresent(ignored -> opts.putIfAbsent(CatalogProperties.FILE_IO_IMPL,
+ NativeGcsResolvingFileIO.class.getName()));
Review Comment:
Thanks, confirmed and fixed in 245515cac8.
Before this PR the plugin had no `iceberg-gcp`, so `ResolvingFileIO` could not load `GCSFileIO` and fell back to `HadoopFileIO`, which picks up the raw `fs.gs.*` keys passed through by `buildHadoopConfiguration()`. A REST catalog with an opaque warehouse and only `fs.gs.*` settings binds no typed GCS storage (`GcsAuthResolver.guessIsGcs()` does not look at `fs.*`), so `chosenS3` is empty and the default was never applied.
`buildCatalogProperties` now also pins `NativeGcsResolvingFileIO` for REST catalogs that carry any raw `fs.gs.*` key, with `putIfAbsent`, so an explicit `io-impl` / `iceberg.rest.io-impl` still wins. `gs://` goes back to `HadoopFileIO` with the configured keyfile, as at the merge base.
I gated it on `fs.gs.*` keys rather than applying it to every REST catalog: client properties override the server's `/v1/config` defaults, so an unconditional pin would replace a server-recommended `io-impl` on catalogs that never configured GCS. Happy to make it unconditional if you prefer that trade-off.
Tests added in `IcebergCatalogFactoryTest`:
- REST, empty `chosenS3`, only `fs.gs.impl` + keyfile keys -> `io-impl` is `NativeGcsResolvingFileIO`
- explicit `io-impl` / `iceberg.rest.io-impl` is kept
- REST without `fs.gs.*` keys -> no `io-impl` set
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7000130225
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "suxiaogang223 (via GitHub) via commits" <co...@doris.apache.org>.
suxiaogang223 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6997521992
/review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-4359594320
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
Please clearly describe your PR:
1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
3. What features were added. Why was this function added?
4. Which code was refactored and why was this part of the code refactored?
5. Which functions were optimized and what is the difference before and after the optimization?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-4414465630
<details>
<summary>TPC-DS: <b>Total hot run time: 170619 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit be06db44195f17be6f293ab6611ed574dfd6b4ba, data reload: false
query5 4314 671 517 517
query6 332 222 209 209
query7 4223 586 323 323
query8 321 248 225 225
query9 8816 3966 3993 3966
query10 448 338 304 304
query11 5782 2391 2231 2231
query12 188 131 128 128
query13 1286 608 454 454
query14 5993 5394 5086 5086
query14_1 4362 4390 4366 4366
query15 216 202 185 185
query16 1014 462 455 455
query17 1171 746 618 618
query18 2465 474 357 357
query19 220 200 161 161
query20 140 131 130 130
query21 210 136 118 118
query22 13593 13598 14811 13598
query23 17155 16509 16277 16277
query23_1 16251 16299 16217 16217
query24 7435 1769 1317 1317
query24_1 1354 1353 1389 1353
query25 576 491 420 420
query26 1294 325 160 160
query27 2778 635 329 329
query28 4387 1959 1958 1958
query29 1002 618 508 508
query30 302 234 195 195
query31 1096 1075 935 935
query32 83 71 70 70
query33 540 334 279 279
query34 1162 1125 639 639
query35 764 769 658 658
query36 1310 1408 1161 1161
query37 146 99 85 85
query38 3207 3067 3013 3013
query39 957 922 878 878
query39_1 878 913 866 866
query40 236 153 134 134
query41 62 59 58 58
query42 112 105 107 105
query43 315 331 284 284
query44
query45 202 204 189 189
query46 1029 1199 722 722
query47 2352 2296 2257 2257
query48 391 441 310 310
query49 637 510 431 431
query50 706 289 213 213
query51 4280 4266 4175 4175
query52 104 104 97 97
query53 250 273 208 208
query54 306 265 250 250
query55 93 89 86 86
query56 297 306 333 306
query57 1450 1395 1325 1325
query58 289 267 266 266
query59 1552 1600 1424 1424
query60 348 338 331 331
query61 156 160 155 155
query62 677 616 571 571
query63 243 195 207 195
query64 2423 812 687 687
query65
query66 1751 515 384 384
query67 30009 29919 29919 29919
query68
query69 470 338 305 305
query70 1009 973 996 973
query71 307 282 270 270
query72 3247 2928 2624 2624
query73 827 771 405 405
query74 5080 4881 4717 4717
query75 2803 2712 2346 2346
query76 2292 1142 750 750
query77 435 430 367 367
query78 12896 12953 12275 12275
query79 1487 970 748 748
query80 802 567 469 469
query81 479 275 237 237
query82 1270 159 121 121
query83 338 274 257 257
query84 257 141 107 107
query85 906 529 442 442
query86 428 328 327 327
query87 3429 3328 3192 3192
query88 3545 2658 2657 2657
query89 438 384 336 336
query90 1789 190 178 178
query91 174 168 137 137
query92 81 77 78 77
query93 967 972 563 563
query94 589 353 301 301
query95 670 370 429 370
query96 985 786 319 319
query97 2725 2708 2608 2608
query98 242 230 226 226
query99 1104 1129 1018 1018
Total cold run time: 253077 ms
Total hot run time: 170619 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-4414450072
<details>
<summary>TPC-H: <b>Total hot run time: 29590 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit be06db44195f17be6f293ab6611ed574dfd6b4ba, data reload: false
------ Round 1 ----------------------------------
orders Doris NULL NULL 0 0 0 NULL 0 NULL NULL 2023-12-26 18:27:23 2023-12-26 18:42:55 NULL utf-8 NULL NULL
============================================
q1 17773 3865 3857 3857
q2 q3 10717 873 597 597
q4 4661 460 343 343
q5 7448 1340 1153 1153
q6 185 168 137 137
q7 905 953 743 743
q8 9310 1375 1276 1276
q9 5607 5347 5300 5300
q10 6243 2081 1791 1791
q11 464 264 259 259
q12 628 420 295 295
q13 18115 3265 2773 2773
q14 294 283 259 259
q15 q16 911 864 792 792
q17 913 1041 704 704
q18 6402 5777 5646 5646
q19 1223 1252 1103 1103
q20 543 396 283 283
q21 4804 2352 1960 1960
q22 481 399 319 319
Total cold run time: 97627 ms
Total hot run time: 29590 ms
----- Round 2, with runtime_filter_mode=off -----
orders Doris NULL NULL 150000000 42 6422171781 NULL 22778155 NULL NULL 2023-12-26 18:27:23 2023-12-26 18:42:55 NULL utf-8 NULL NULL
============================================
q1 4720 4629 4828 4629
q2 q3 4637 4777 4199 4199
q4 2072 2135 1390 1390
q5 4984 4993 5267 4993
q6 193 169 132 132
q7 2057 1793 1660 1660
q8 3334 3090 3117 3090
q9 8365 8431 8389 8389
q10 4471 4558 4231 4231
q11 619 418 400 400
q12 731 735 522 522
q13 3221 3657 2879 2879
q14 299 306 269 269
q15 q16 789 926 706 706
q17 1311 1313 1294 1294
q18 7938 7141 7087 7087
q19 1183 1163 1138 1138
q20 2233 2266 1945 1945
q21 6051 5485 4810 4810
q22 549 491 423 423
Total cold run time: 59757 ms
Total hot run time: 54186 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7078509662
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "suxiaogang223 (via GitHub) via commits" <co...@doris.apache.org>.
suxiaogang223 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6941771303
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub)" <gi...@apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-4360914039
/review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6488472253
# FE UT Coverage Report
Increment line coverage `` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62988_0f41aa4a7d261ea87b04e23976e9430b4f1a21ec/fe_increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62988_0f41aa4a7d261ea87b04e23976e9430b4f1a21ec/fe_report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6520497807
# FE UT Coverage Report
Increment line coverage `` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62988_0f41aa4a7d261ea87b04e23976e9430b4f1a21ec/fe_increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62988_0f41aa4a7d261ea87b04e23976e9430b4f1a21ec/fe_report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub) via commits" <co...@doris.apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6602337909
<details>
<summary>TPC-DS: <b>Total hot run time: 152461 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit f2ba788f21391c7bfc84f6738ea1607f6600e720, data reload: false
query5 4294 600 465 465
query6 419 212 190 190
query7 4814 453 238 238
query8 329 168 152 152
query9 8777 3193 3190 3190
query10 471 318 268 268
query11 6029 3893 3569 3569
query12 144 96 88 88
query13 1269 434 348 348
query14 6097 3914 3664 3664
query14_1 3408 3458 3410 3410
query15 207 206 187 187
query16 944 438 418 418
query17 854 656 526 526
query18 2428 424 313 313
query19 205 174 137 137
query20 87 85 84 84
query21 204 131 111 111
query22 13051 13108 12879 12879
query23 13556 12991 12799 12799
query23_1 12664 12490 12563 12490
query24 7368 832 483 483
query24_1 492 490 495 490
query25 537 427 372 372
query26 1272 258 148 148
query27 2773 443 278 278
query28 4610 2052 2057 2052
query29 1588 612 463 463
query30 308 220 191 191
query31 1015 941 835 835
query32 144 100 91 91
query33 544 314 243 243
query34 912 871 507 507
query35 755 752 658 658
query36 883 807 746 746
query37 141 100 84 84
query38 1798 1726 1699 1699
query39 790 800 752 752
query39_1 738 729 734 729
query40 217 117 99 99
query41 74 71 68 68
query42 89 86 85 85
query43 349 366 327 327
query44 1361 710 711 710
query45 182 179 165 165
query46 852 1007 568 568
query47 2956 2975 2753 2753
query48 298 325 242 242
query49 563 391 290 290
query50 703 273 212 212
query51 10244 10577 10570 10570
query52 80 86 69 69
query53 192 208 153 153
query54 254 196 188 188
query55 71 61 64 61
query56 240 211 211 211
query57 1655 1592 1564 1564
query58 288 266 257 257
query59 2137 2160 2066 2066
query60 277 242 224 224
query61 140 150 146 146
query62 378 348 300 300
query63 193 157 158 157
query64 2803 991 777 777
query65 3352 3281 3266 3266
query66 1778 442 303 303
query67 20251 20238 20101 20101
query68 3047 1025 625 625
query69 377 287 248 248
query70 822 786 780 780
query71 306 232 194 194
query72 2781 2615 2400 2400
query73 519 536 297 297
query74 4626 4521 4345 4345
query75 2334 2282 1923 1923
query76 2318 1028 589 589
query77 369 382 271 271
query78 9778 9824 9171 9171
query79 1019 913 533 533
query80 918 419 360 360
query81 574 317 276 276
query82 574 133 103 103
query83 299 201 185 185
query84 315 124 105 105
query85 969 442 370 370
query86 354 238 233 233
query87 2007 1991 1813 1813
query88 3857 2828 2816 2816
query89 333 281 238 238
query90 1748 178 172 172
query91 167 160 135 135
query92 105 83 89 83
query93 1051 1037 584 584
query94 514 301 269 269
query95 580 333 368 333
query96 697 516 240 240
query97 2446 2411 2328 2328
query98 160 155 146 146
query99 770 764 638 638
Total cold run time: 235370 ms
Total hot run time: 152461 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6849605801
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6748459449
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@doris.apache.org>.
github-actions[bot] commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7120627707
PR approved by anyone and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub)" <gi...@apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-4360899818
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6277097624
<details>
<summary>TPC-DS: <b>Total hot run time: 150203 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 08202970cdb959e4a408ee2f068513c1fc68bb21, data reload: false
query5 4319 589 441 441
query6 442 197 185 185
query7 4797 440 228 228
query8 330 160 144 144
query9 8754 3064 3080 3064
query10 488 294 244 244
query11 6046 3811 3564 3564
query12 145 97 87 87
query13 1251 422 318 318
query14 6126 3835 3580 3580
query14_1 3401 3379 3367 3367
query15 208 197 182 182
query16 936 474 430 430
query17 891 638 540 540
query18 2397 416 300 300
query19 204 155 131 131
query20 81 85 80 80
query21 197 124 103 103
query22 12935 12987 12865 12865
query23 13510 12872 12543 12543
query23_1 12640 12491 12574 12491
query24 7344 810 448 448
query24_1 469 472 451 451
query25 505 388 335 335
query26 1255 256 132 132
query27 2776 434 264 264
query28 4612 1921 1931 1921
query29 1555 570 429 429
query30 313 220 176 176
query31 1005 927 803 803
query32 132 91 86 86
query33 505 290 228 228
query34 890 837 489 489
query35 733 748 662 662
query36 799 798 702 702
query37 119 98 75 75
query38 1783 1695 1660 1660
query39 780 801 739 739
query39_1 735 721 731 721
query40 215 106 87 87
query41 68 62 61 61
query42 84 83 83 83
query43 338 363 306 306
query44 1285 681 684 681
query45 178 175 158 158
query46 840 945 552 552
query47 2712 2713 2881 2713
query48 284 293 219 219
query49 561 396 283 283
query50 680 274 201 201
query51 10312 10223 10317 10223
query52 75 78 69 69
query53 181 203 148 148
query54 228 201 174 174
query55 66 65 63 63
query56 217 208 190 190
query57 1629 1596 1522 1522
query58 287 251 251 251
query59 2146 2165 1947 1947
query60 313 248 221 221
query61 149 143 143 143
query62 381 325 281 281
query63 184 154 152 152
query64 2742 940 756 756
query65 3308 3257 3232 3232
query66 1771 422 292 292
query67 20280 20042 20039 20039
query68 2950 998 602 602
query69 389 266 234 234
query70 841 759 763 759
query71 304 228 207 207
query72 2782 2702 2475 2475
query73 510 528 299 299
query74 4589 4502 4338 4338
query75 2330 2309 1916 1916
query76 2323 1012 590 590
query77 344 391 281 281
query78 9503 9643 9091 9091
query79 878 850 510 510
query80 507 451 366 366
query81 540 319 279 279
query82 210 136 106 106
query83 306 204 189 189
query84 311 135 113 113
query85 916 490 450 450
query86 260 243 229 229
query87 1937 1917 1817 1817
query88 3635 2683 2659 2659
query89 319 283 243 243
query90 2065 216 161 161
query91 159 151 127 127
query92 97 85 88 85
query93 978 988 578 578
query94 447 304 265 265
query95 575 334 362 334
query96 664 479 229 229
query97 2422 2463 2311 2311
query98 160 151 143 143
query99 767 767 624 624
Total cold run time: 232691 ms
Total hot run time: 150203 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6849346295
Thanks for the review. 8c8306ac4a addresses the HMS regression and a few follow-ups:
- **HMS + GCS HMAC + `s3a://` (your P2):** the `NativeGcsResolvingFileIO` default now applies to HMAC/anonymous bindings only on REST, the one flavor whose SDK default is `ResolvingFileIO`. HMS, hadoop and jdbc keep `HadoopFileIO`, and glue keeps `S3FileIO`, as before this PR. Native ADC / `COMPUTE_ENGINE` bindings keep the pin on every flavor. New tests: `gcsNonNativeNonRestCatalogsKeepTheirSdkDefaultFileIo`, and `gcsHmacHmsCatalogReadsS3aThroughHadoopFileIo`, which runs the real FileIO dispatch for HMS + HMAC + `s3a://`.
- **Removed `iceberg.gcs.oauth2.token`:** it was a static access token with no refresh (expires after about an hour), it overrode FE ADC under `GCSFileIO`, and `SHOW CREATE CATALOG` printed it unmasked. The PR description now points to ADC on BE hosts for BE-executed metadata tables.
- **Smaller fixes:** `AuthProperties` constants instead of hard-coded strings; corrected which metadata tables carry a FileIO (`$files`, `$entries`, `$all_manifests` and variants; `$manifests` does not); a BE `$files` test through `NativeGcsResolvingFileIO`; a per-flavor `io-impl` table and an SSRF note in the PR description.
**Future feature (out of scope for this PR):**
- Add refresh support: declare iceberg.gcs.oauth2.refresh-credentials-endpoint and its enabled flag, mask the token, register the endpoint as an SSRF surface, and add tests. That grows the PR's scope.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6849790950
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6598447656
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6598441039
run feut
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "suxiaogang223 (via GitHub) via commits" <co...@doris.apache.org>.
suxiaogang223 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7094837224
/review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on code in PR #62988:
URL: https://github.com/apache/doris/pull/62988#discussion_r4664966623
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:
##########
@@ -480,18 +496,27 @@ public static Map<String, String> buildCatalogProperties(IcebergCatalogPropertie
opts.put(GcpCredential.CREDENTIAL_PROVIDER_TYPE, credential.getCredentialProviderType().name());
putIfNotBlank(opts, GcpCredential.IMPERSONATION_SERVICE_ACCOUNT,
credential.getImpersonationServiceAccount());
- // Keep explicit FileIO choices. By default, S3 aliases use the GCP client factory,
- // while gs/HDFS paths use HadoopFileIO with the native fs.gs.* configuration
- // (the plugin does not bundle iceberg-gcp's GCSFileIO).
- opts.putIfAbsent(CatalogProperties.FILE_IO_IMPL, "org.apache.iceberg.io.ResolvingFileIO");
+ // S3 aliases use the GCP client factory; gs/HDFS stay on HadoopFileIO (pinned above)
+ // with the native fs.gs.* configuration emitted here.
opts.put(S3FileIOProperties.CLIENT_FACTORY, GcpS3FileIOAwsClientFactory.class.getName());
});
}));
+ if (IcebergCatalogProperties.TYPE_REST.equals(flavor) && hasRawGcsHadoopProperties(props)) {
Review Comment:
Thanks for checking. I traced this and it isn't a regression: those `fs.s3a.*` keys never applied to `gs://` paths.
Before this PR, `HadoopFileIO` picks the filesystem for `gs://` from `fs.gs.impl`. With only raw `fs.s3a.*` keys, nothing sets it. `guessIsGcs()` binds no typed GCS storage, and only `GcsFileSystemProperties` maps `gs` to `S3AFileSystem`. So Hadoop uses the `gs` filesystem registered by the bundled `gcs-connector`. That is `GoogleHadoopFileSystem`, which authenticates with Google credentials and never reads `fs.s3a.*`; if it isn't found, the read fails with "No FileSystem for scheme gs". Before and after this PR, that setup reads `gs://` with Google credentials.
A catalog that did route `gs://` to S3A has to set `fs.gs.impl`. That is an `fs.gs.*` key, so the current guard already pins `NativeGcsResolvingFileIO` for it. Extending the guard to `fs.s3a.*` would also change the FileIO of REST catalogs that use `fs.s3a.*` only for `s3://` data, so I'd prefer to keep it as is.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6598401791
run feut
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6523468308
<details>
<summary>TPC-DS: <b>Total hot run time: 151086 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 0f41aa4a7d261ea87b04e23976e9430b4f1a21ec, data reload: false
query5 4314 601 445 445
query6 424 209 191 191
query7 4816 441 239 239
query8 325 164 154 154
query9 8791 3229 3219 3219
query10 479 307 276 276
query11 6010 3857 3567 3567
query12 147 90 84 84
query13 1253 430 326 326
query14 6112 3933 3645 3645
query14_1 3368 3474 3453 3453
query15 204 193 180 180
query16 947 442 402 402
query17 833 637 518 518
query18 2407 414 293 293
query19 182 153 126 126
query20 84 81 82 81
query21 211 130 104 104
query22 12935 12938 12830 12830
query23 13402 12732 12398 12398
query23_1 12448 12699 12888 12699
query24 7376 827 461 461
query24_1 478 488 484 484
query25 546 426 367 367
query26 1265 263 144 144
query27 2842 447 279 279
query28 5069 2135 2120 2120
query29 1565 610 480 480
query30 300 227 189 189
query31 1031 943 820 820
query32 139 113 92 92
query33 569 295 239 239
query34 896 865 508 508
query35 725 737 648 648
query36 821 812 725 725
query37 126 95 74 74
query38 1763 1712 1652 1652
query39 782 799 745 745
query39_1 728 731 732 731
query40 218 109 95 95
query41 68 63 60 60
query42 84 83 84 83
query43 351 357 307 307
query44 1330 708 701 701
query45 179 175 164 164
query46 833 964 575 575
query47 3024 2706 2286 2286
query48 301 309 225 225
query49 584 382 288 288
query50 701 265 210 210
query51 10731 10425 10533 10425
query52 79 79 74 74
query53 186 222 156 156
query54 250 185 192 185
query55 69 72 66 66
query56 246 221 198 198
query57 1682 1629 1544 1544
query58 292 258 257 257
query59 2111 2116 1950 1950
query60 288 244 234 234
query61 148 147 143 143
query62 389 335 282 282
query63 189 165 163 163
query64 2743 1019 874 874
query65 3337 3278 3265 3265
query66 1779 436 321 321
query67 20140 20133 19874 19874
query68 3057 1017 611 611
query69 401 292 258 258
query70 892 792 829 792
query71 299 247 218 218
query72 2840 2681 2388 2388
query73 517 524 295 295
query74 4662 4499 4356 4356
query75 2309 2300 1900 1900
query76 2312 1032 609 609
query77 350 370 271 271
query78 9837 9763 9127 9127
query79 996 853 542 542
query80 932 426 341 341
query81 603 313 267 267
query82 586 144 104 104
query83 291 204 184 184
query84 321 126 103 103
query85 1031 422 369 369
query86 357 239 240 239
query87 1995 1935 1805 1805
query88 3853 2827 2774 2774
query89 334 299 249 249
query90 1715 175 173 173
query91 163 154 129 129
query92 104 88 83 83
query93 1018 1003 580 580
query94 518 296 267 267
query95 580 343 372 343
query96 690 488 238 238
query97 2418 2406 2354 2354
query98 165 152 154 152
query99 763 765 642 642
Total cold run time: 235734 ms
Total hot run time: 151086 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6849370589
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub)" <gi...@apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6275257717
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6277187502
<details>
<summary>ClickBench: <b>Total hot run time: 24.36 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 08202970cdb959e4a408ee2f068513c1fc68bb21, data reload: false
query1 0.01 0.01 0.01
query2 0.09 0.05 0.05
query3 0.26 0.08 0.09
query4 1.61 0.10 0.10
query5 0.23 0.24 0.24
query6 1.18 0.68 0.68
query7 0.03 0.01 0.00
query8 0.05 0.03 0.04
query9 0.40 0.34 0.35
query10 0.55 0.58 0.58
query11 0.20 0.14 0.14
query12 0.18 0.14 0.16
query13 0.49 0.50 0.48
query14 1.03 1.03 1.01
query15 0.62 0.60 0.59
query16 0.31 0.34 0.34
query17 1.18 1.14 1.14
query18 0.21 0.19 0.19
query19 2.09 2.03 2.03
query20 0.02 0.02 0.01
query21 15.51 0.18 0.14
query22 5.00 0.05 0.06
query23 16.27 0.33 0.12
query24 3.07 0.58 0.41
query25 0.14 0.06 0.05
query26 1.46 0.23 0.16
query27 0.04 0.05 0.04
query28 3.22 0.73 0.34
query29 12.50 4.20 3.31
query30 0.28 0.12 0.10
query31 2.77 0.56 0.32
query32 3.21 0.60 0.50
query33 3.16 3.20 3.19
query34 15.42 3.99 3.37
query35 3.34 3.34 3.33
query36 0.56 0.45 0.41
query37 0.09 0.06 0.06
query38 0.04 0.04 0.03
query39 0.04 0.03 0.03
query40 0.17 0.15 0.15
query41 0.08 0.03 0.02
query42 0.03 0.02 0.02
query43 0.04 0.03 0.04
Total cold run time: 97.18 s
Total hot run time: 24.36 s
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "suxiaogang223 (via GitHub)" <gi...@apache.org>.
suxiaogang223 commented on code in PR #62988:
URL: https://github.com/apache/doris/pull/62988#discussion_r4385218199
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:
##########
@@ -533,10 +534,21 @@ public static void appendRestProperties(Map<String, String> opts, IcebergRestMet
// Timeouts: legacy fields default non-blank, so they are effectively always emitted.
opts.put(REST_CONNECTION_TIMEOUT_MS_KEY, rest.getConnectionTimeoutMs());
opts.put(REST_SOCKET_TIMEOUT_MS_KEY, rest.getSocketTimeoutMs());
+ putIfNotBlank(opts, CatalogProperties.FILE_IO_IMPL, rest.getIoImpl());
+ putIfNotBlank(opts, "header.x-goog-user-project", rest.getGoogleUserProject());
+ putIfNotBlank(opts, "gcs.oauth2.token", rest.getGcsOauth2Token());
Review Comment:
[P1] Wire Google storage credentials through to the BE data reader
These properties configure the FE's Iceberg FileIO, but ordinary Iceberg data files are read by the BE's native reader rather than GCSFileIO. With the ADC-only configuration shown in the PR description and a private GCS bucket, REST/manifest access on the FE can succeed while a query that actually reads a data column still fails: the existing GCS storage implementation uses the S3/XML API with HMAC credentials, and this change supplies neither usable BE credentials nor an OAuth2-capable BE read path. Credential vending does not bridge the gap either: IcebergScanPlanProvider passes the FileIO credentials through DefaultConnectorContext.vendStorageCredentials(), whose CredentialUtils.filterCloudStorageProperties() accepts `gs.*` but drops `gcs.oauth2.token`.
Could we complete the BE storage authentication path, or explicitly require separate HMAC credentials and update the example and supported scope accordingly? Please also cover a query that reads an actual data column from a private bucket; COUNT(*) can be answered from metadata and would miss this failure.
##########
fe/fe-connector/fe-connector-iceberg/pom.xml:
##########
@@ -112,6 +112,20 @@ under the License.
<version>${iceberg.version}</version>
</dependency>
+ <!-- GoogleAuthManager and GCSFileIO are loaded by name inside the connector plugin. -->
+ <dependency>
+ <groupId>org.apache.iceberg</groupId>
+ <artifactId>iceberg-gcp</artifactId>
Review Comment:
[P2] Include the GCS FileIO runtime in the BE metadata scanner plugin
Adding these dependencies only to the FE connector leaves the BE's isolated `iceberg-metadata-scanner` plugin without `iceberg-gcp` and its Google runtime dependencies. For a non-empty GCS-backed table, a `$files` scan produces Iceberg BaseFilesTable.ManifestReadTask objects that retain `table.io()` (GCSFileIO). IcebergScanPlanProvider serializes those tasks into `serialized_split`, and IcebergSysTableJniScanner deserializes them on the BE. That deserialization cannot resolve `org.apache.iceberg.gcp.gcs.GCSFileIO` with the scanner's current dependency closure, so the metadata query fails before it can read the manifest. IcebergSerializationCompat also wraps the missing-class exception as an Iceberg version mismatch, which obscures the cause.
Please add the required runtime dependencies to the BE scanner plugin as well and cover a `$files` query on a non-empty GCS table. The new googleRuntimeClassesAreAvailable() test checks only the FE connector classloader and cannot detect this packaging gap.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7000012946
<!-- doris-repo-review:v1:begin -->
### Local pipeline review — ✅ PASS
```yaml
schema: doris-repo-review/v1
status: PASS
pr: apache/doris#62988
commit: 0af912b7decabeded32a494c71debc02c16674ac
base: 25de3bf8cc627ad232d19c41629fe9ef5b03bdfa
reviewed_at: 2026-11-19T11:48+07:00
reviewer: tuantran0910
model: claude-opus-5-5
effort: xhigh
findings: {blocker: 0, major: 0, minor: 0, nit: 1}
rounds: 1
converged: true
```
**Notes for maintainers**
- `fe/be-java-extensions/iceberg-metadata-scanner/pom.xml:91-95` — upgrade order: with `iceberg-gcp` in the BE scanner, a
BE-first upgrade from an Iceberg-1.12 FE build without this change can read `$all_manifests` manifest lists of REST
catalogs over `gs://` through `GCSFileIO` with the BE host's ADC until the FE is upgraded (declared in the PR body and
release note). Released 4.x FEs are unaffected: their system-table splits already fail closed on an Iceberg-1.12 BE.
- `fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:470-473`
— the `NativeGcsResolvingFileIO` default applies only when a typed GCS storage binding is inferred; a REST catalog
configured with raw `fs.gs.*` keys alone still resolves `gs://` to `GCSFileIO`. That case is the open review thread
r4623541395 and is not settled by this pass.
<sub>Reviewed locally with the `doris-repo-review` pipeline. Repository policy may accept this receipt for the matching commit; it is not a human Apache approval.</sub>
<!-- doris-repo-review:v1:end -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@doris.apache.org>.
github-actions[bot] commented on code in PR #62988:
URL: https://github.com/apache/doris/pull/62988#discussion_r4623541395
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:
##########
@@ -455,6 +459,18 @@ public static Map<String, String> buildCatalogProperties(IcebergCatalogPropertie
}
chosenS3.ifPresent(storage -> storage.toBackendProperties().ifPresent(backend -> {
Optional<GcsAuth> auth = GcsAuthResolver.resolve(backend.toMap());
+ // Keep explicit FileIO choices. The plugin bundles iceberg-gcp, so upstream ResolvingFileIO
+ // routes gs to GCSFileIO whenever that class is loadable - independently of which GCS
+ // credential mode is configured - and drops the fs.gs.* / fs.s3a.* configuration Doris
+ // builds for GCS. Native ADC / COMPUTE_ENGINE bindings always get the pin (they emit the
+ // S3FileIO dialect below). HMAC and anonymous bindings get it only on REST, the one flavor
+ // whose SDK default is ResolvingFileIO; hms / hadoop / jdbc default to HadoopFileIO and glue
+ // to S3FileIO, and HMS emits no S3FileIO options, so the pin would send its s3/s3a paths to
+ // an unconfigured S3FileIO.
+ auth.filter(gcsAuth -> gcsAuth.getNativeCredential().isPresent()
+ || IcebergCatalogProperties.TYPE_REST.equals(flavor))
+ .ifPresent(ignored -> opts.putIfAbsent(CatalogProperties.FILE_IO_IMPL,
+ NativeGcsResolvingFileIO.class.getName()));
Review Comment:
[P2] Preserve the GCS fallback for catalogs with only Hadoop settings
This default is guarded by `chosenS3`, so a REST catalog with an opaque/server-selected warehouse and only `fs.gs.impl` plus `fs.gs.auth.type=SERVICE_ACCOUNT_JSON_KEYFILE`/`fs.gs.auth.service.account.json.keyfile` never gets it: `GcsAuthResolver.guessIsGcs()` does not recognize raw `fs.*`, and the storage binder falls back to HDFS. `buildHadoopConfiguration()` explicitly supports these keys, and previously `ResolvingFileIO` fell back to `HadoopFileIO` because `iceberg-gcp` was absent. With that jar now bundled, it loads `GCSFileIO`, ignores the configured keyfile and uses ADC, so existing `gs://` metadata/manifest reads fail on a host without matching ADC. Apply the REST routing default independently of typed-storage inference while preserving explicit `io-impl`, and cover the empty-`chosenS3` case. This affects FE metadata access in existing catalogs, separately from the earlier BE credential and packaging threads.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on code in PR #62988:
URL: https://github.com/apache/doris/pull/62988#discussion_r4665267167
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:
##########
@@ -570,10 +595,20 @@ public static void appendRestProperties(Map<String, String> opts, IcebergRestMet
// Timeouts: legacy fields default non-blank, so they are effectively always emitted.
opts.put(REST_CONNECTION_TIMEOUT_MS_KEY, rest.getConnectionTimeoutMs());
opts.put(REST_SOCKET_TIMEOUT_MS_KEY, rest.getSocketTimeoutMs());
+ putIfNotBlank(opts, CatalogProperties.FILE_IO_IMPL, rest.getIoImpl());
+ putIfNotBlank(opts, REST_GOOGLE_USER_PROJECT_HEADER, rest.getGoogleUserProject());
appendRestOAuth2Properties(opts, rest);
+ appendRestGoogleProperties(opts, rest);
appendRestSigningProperties(opts, rest, props, chosenS3);
}
+ private static void appendRestGoogleProperties(Map<String, String> opts, IcebergRestMetaStoreProperties rest) {
+ if (!SECURITY_TYPE_GOOGLE.equalsIgnoreCase(rest.getSecurityType())) {
+ return;
+ }
+ opts.put(AuthProperties.AUTH_TYPE, AuthProperties.AUTH_MANAGER_IMPL_GOOGLE);
Review Comment:
Thanks, agreed: once `iceberg-gcp` is bundled, `gcs.service.host` and `gcs.oauth2.refresh-credentials-endpoint` reach `GCSFileIO` through the raw catalog properties, and the gate does not probe them.
I'd like to handle this in a follow-up PR rather than here:
- The gate is a no-op unless an SSRF checker is configured (`security_checker_class_name`).
- On master, the Iceberg connector already declares only `kms.endpoint`, so the REST `uri`, `iceberg.rest.oauth2.server-uri` and `s3.endpoint` are not probed either.
The follow-up will declare `gcs.service.host` and `gcs.oauth2.refresh-credentials-endpoint` in `IcebergConnectorProvider.securitySurface()`, with a provider test.
`gcp.auth.credentials-json` and `gcp.auth.credentials-path` are not supported options in this PR, which documents only Application Default Credentials. The gate cannot probe them as endpoints, since their hosts sit inside a credentials JSON (`token_uri`, `credential_source.url`). I'll add proper support for them later, with validation of the credential type and token endpoints.
Declaring the REST `uri` and the other existing Iceberg endpoints changes every Iceberg catalog, so I'd keep that separate. Happy to fold the GCS part into this PR instead if you prefer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7004151722
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub)" <gi...@apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-4414368993
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub)" <gi...@apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6486973377
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "lsy3993 (via GitHub)" <gi...@apache.org>.
lsy3993 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6517873561
run performance
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6523287976
<details>
<summary>TPC-H: <b>Total hot run time: 28279 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 0f41aa4a7d261ea87b04e23976e9430b4f1a21ec, data reload: false
------ Round 1 ----------------------------------
============================================
q1 17609 5138 5077 5077
q2 2132 300 248 248
q3 10267 1367 813 813
q4 4675 458 334 334
q5 7436 801 531 531
q6 187 188 153 153
q7 733 794 602 602
q8 9258 1340 1039 1039
q9 5476 4172 4149 4149
q10 6809 1277 1013 1013
q11 426 243 222 222
q12 631 399 278 278
q13 18122 3518 3057 3057
q14 277 278 243 243
q15 q16 724 712 657 657
q17 1208 768 591 591
q18 6921 6146 6071 6071
q19 1095 978 594 594
q20 387 336 219 219
q21 4769 2132 2313 2132
q22 346 299 256 256
Total cold run time: 99488 ms
Total hot run time: 28279 ms
----- Round 2, with runtime_filter_mode=off -----
============================================
q1 5534 5570 5577 5570
q2 678 583 533 533
q3 5163 5363 4931 4931
q4 1961 2137 1546 1546
q5 5194 5110 5397 5110
q6 272 208 157 157
q7 2374 2047 1876 1876
q8 3008 2685 2720 2685
q9 8016 7910 7916 7910
q10 3706 3641 3484 3484
q11 623 464 439 439
q12 698 717 512 512
q13 3687 3914 3305 3305
q14 322 314 299 299
q15 q16 701 709 634 634
q17 8392 7007 6845 6845
q18 12990 12124 12883 12124
q19 949 779 772 772
q20 2141 2144 1918 1918
q21 5545 4701 4656 4656
q22 549 463 389 389
Total cold run time: 72503 ms
Total hot run time: 65695 ms
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6279554820
# FE Regression Coverage Report
Increment line coverage ` 100% (0/0)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62988_08202970cdb959e4a408ee2f068513c1fc68bb21_merge_fe/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62988_08202970cdb959e4a408ee2f068513c1fc68bb21_merge_fe/report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "hello-stephen (via GitHub) via commits" <co...@doris.apache.org>.
hello-stephen commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6602436720
<details>
<summary>ClickBench: <b>Total hot run time: 24.6 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit f2ba788f21391c7bfc84f6738ea1607f6600e720, data reload: false
query1 0.01 0.01 0.01
query2 0.09 0.05 0.05
query3 0.26 0.08 0.08
query4 1.61 0.10 0.10
query5 0.24 0.24 0.24
query6 1.17 0.67 0.69
query7 0.04 0.01 0.01
query8 0.05 0.03 0.04
query9 0.43 0.36 0.35
query10 0.57 0.60 0.59
query11 0.19 0.15 0.15
query12 0.18 0.15 0.15
query13 0.48 0.50 0.49
query14 1.04 1.02 1.01
query15 0.64 0.61 0.59
query16 0.32 0.35 0.36
query17 1.16 1.15 1.14
query18 0.20 0.20 0.20
query19 2.01 1.98 1.94
query20 0.02 0.01 0.02
query21 15.52 0.20 0.13
query22 4.94 0.06 0.05
query23 16.27 0.32 0.13
query24 2.85 0.69 0.61
query25 0.09 0.07 0.06
query26 1.69 0.21 0.15
query27 0.05 0.03 0.04
query28 3.47 0.71 0.36
query29 12.49 4.09 3.26
query30 0.28 0.12 0.10
query31 2.77 0.56 0.32
query32 3.24 0.60 0.52
query33 3.15 3.20 3.22
query34 15.36 3.98 3.39
query35 3.38 3.35 3.36
query36 0.54 0.45 0.46
query37 0.09 0.06 0.07
query38 0.05 0.04 0.03
query39 0.04 0.03 0.03
query40 0.17 0.15 0.14
query41 0.08 0.03 0.02
query42 0.04 0.02 0.02
query43 0.05 0.03 0.03
Total cold run time: 97.32 s
Total hot run time: 24.6 s
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6849594717
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "suxiaogang223 (via GitHub) via commits" <co...@doris.apache.org>.
suxiaogang223 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6762549294
Local code review of `c23c4ab8d60099ecbd69eb8d8337acda87b0bc68`: one P2 regression remains.
### [P2] Preserve the Hadoop FileIO configuration for HMS catalogs using GCS HMAC
Location: [IcebergCatalogFactory.java, lines 465–466](https://github.com/apache/doris/blob/c23c4ab8d60099ecbd69eb8d8337acda87b0bc68/fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java#L465-L466).
This affects an existing Iceberg HMS catalog with `provider=GCP`, `gs.access_key` / `gs.secret_key`, metadata or manifest locations using the supported `s3a://` alias, and no explicit `io-impl`.
Previously, HiveCatalog defaulted to HadoopFileIO and used the GCS endpoint and HMAC credentials in the Hadoop configuration. The new unconditional default selects NativeGcsResolvingFileIO for HMAC catalogs as well. That implementation pins only `gs://` to HadoopFileIO; `s3a://` still resolves to S3FileIO.
The HMS branch deliberately skips `appendS3FileIO`, and HMAC does not enter the native-credential branch that calls `putS3FileIODialect`. Consequently, the new S3FileIO has none of `s3.endpoint`, `s3.access-key-id`, `s3.secret-access-key`, or `client.region`, although the corresponding Hadoop configuration is populated.
```text
Before: HiveCatalog -> HadoopFileIO -> configured fs.s3a.*
After: HiveCatalog -> NativeGcsResolvingFileIO -> S3FileIO -> missing catalog options
```
I reproduced the dispatch through the current property assembly and real Iceberg FileIO implementations in a local Java probe. With ambient AWS credentials/region disabled, the new path throws `SdkClientException: Unable to load region`, while the original HadoopFileIO path constructs a HadoopInputFile. Only the Hadoop transport was substituted in the probe; no real GCS connection was made.
Please preserve the previous HadoopFileIO default for HMS HMAC catalogs, or supply the complete S3FileIO configuration when changing their default. Add coverage for actual FileIO dispatch with HMS + GCS HMAC + `s3a://`; the new non-native routing test currently covers REST only.
### Validation
- `run-fe-ut.sh --run 'IcebergCatalogFactoryTest,IcebergConnectorValidatePropertiesTest,IcebergRestMetaStorePropertiesTest,IcebergPluginTest,IcebergSerializationCompatTest'`: **131 tests passed**, zero failures/errors/skips; the complete script finished successfully after removing stale FE core build artifacts from an earlier branch.
- Checkstyle validation passed for the affected modules and their reactor dependencies.
- A local mock OAuth/REST service verified ADC token refresh and the Bearer and `x-goog-user-project` headers on `/config` and namespace requests.
- Real GCS access and the deployed plugin-directory dependency closure were not revalidated. The previously reported BE dependency gap is addressed in the current POMs and the serialization tests pass.
The HMS routing regression should be fixed before marking this review PASS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-6922026060
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@doris.apache.org>.
github-actions[bot] commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7120628306
PR approved by at least one committer and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "tuantran0910 (via GitHub) via commits" <co...@doris.apache.org>.
tuantran0910 commented on PR #62988:
URL: https://github.com/apache/doris/pull/62988#issuecomment-7096909406
<!-- doris-repo-review:v1:begin -->
### Local pipeline review — ✅ PASS
```yaml
schema: doris-repo-review/v1
status: PASS
pr: apache/doris#62988
commit: 17810c86611b5f99bdd07d7676db0b179e163475
base: 238f43a5d674ff142d7912263530e3e6a64fb74b
reviewed_at: 2026-11-23T16:38+07:00
reviewer: tuantran0910
model: claude-opus-5-5
effort: xhigh
findings: {blocker: 0, major: 0, minor: 0, nit: 0}
rounds: 1
converged: true
```
**Notes for maintainers**
- `fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergConnectorProvider.java:95-97`: `securitySurface()` declares only `kms.endpoint` as an SSRF endpoint. The bundled `iceberg-gcp` now also honors GCS endpoint keys such as `gcs.service.host` and `gcs.oauth2.refresh-credentials-endpoint`. The open CI thread on `IcebergCatalogFactory.java:609` raises this, and this receipt does not settle it.
- `fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:504-510`, on the open CI thread about raw `fs.s3a.*` settings on an opaque REST catalog: before this PR, `HadoopFileIO` did not read `gs://` through `fs.s3a.*` either. Doris maps `gs` to `S3AFileSystem` only for a typed GCS binding (`GcsFileSystemProperties.java:241`, pinned at `IcebergCatalogFactory.java:470-473`) or a raw `fs.gs.impl` key (pinned at lines 504-510). Otherwise gcs-connector 3.1.18 registers `GoogleHadoopFileSystem` with ambient Google credentials. The remaining difference is the trade-off for REST catalogs with no GCS configuration, discussed on thread r4623541395.
- The pinned `io-impl` defaults are client properties, so they replace an `io-impl` that a REST server sends in its `/v1/config` `defaults`. The PR body declares this, and setting `iceberg.rest.io-impl` keeps the server's choice. Master's `DorisRESTSessionCatalog` still builds table FileIOs from `io-impl` (`fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/iceberg/rest/DorisRESTSessionCatalog.java:44`).
- Because `iceberg-gcp` is bundled, `encryption.kms-type=gcp` now resolves `GcpKeyManagementClient`, but `google-cloud-kms` is not shipped. Encrypted reads are fenced on master (`fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergEncryptionRead.java:86`), so nothing reaches it today. Whoever enables GCP KMS later has to add that SDK.
- `security.type=google` is covered by unit tests only. No test exercises live Google OAuth or a BigLake endpoint.
<sub>Reviewed locally with the `doris-repo-review` pipeline. Repository policy may accept this receipt for the matching commit; it is not a human Apache approval.</sub>
<!-- doris-repo-review:v1:end -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feat](iceberg) Support Google Authentication for Iceberg REST catalog [doris]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@doris.apache.org>.
github-actions[bot] commented on code in PR #62988:
URL: https://github.com/apache/doris/pull/62988#discussion_r4663717205
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:
##########
@@ -570,10 +595,20 @@ public static void appendRestProperties(Map<String, String> opts, IcebergRestMet
// Timeouts: legacy fields default non-blank, so they are effectively always emitted.
opts.put(REST_CONNECTION_TIMEOUT_MS_KEY, rest.getConnectionTimeoutMs());
opts.put(REST_SOCKET_TIMEOUT_MS_KEY, rest.getSocketTimeoutMs());
+ putIfNotBlank(opts, CatalogProperties.FILE_IO_IMPL, rest.getIoImpl());
+ putIfNotBlank(opts, REST_GOOGLE_USER_PROJECT_HEADER, rest.getGoogleUserProject());
appendRestOAuth2Properties(opts, rest);
+ appendRestGoogleProperties(opts, rest);
appendRestSigningProperties(opts, rest, props, chosenS3);
}
+ private static void appendRestGoogleProperties(Map<String, String> opts, IcebergRestMetaStoreProperties rest) {
+ if (!SECURITY_TYPE_GOOGLE.equalsIgnoreCase(rest.getSecurityType())) {
+ return;
+ }
+ opts.put(AuthProperties.AUTH_TYPE, AuthProperties.AUTH_MANAGER_IMPL_GOOGLE);
Review Comment:
[P1] Declare the Google/GCS endpoint properties in the connector SSRF surface
The new GoogleAuthManager/GCSFileIO path is now loadable and raw Iceberg properties pass through, but `IcebergConnectorProvider.securitySurface()` still declares only `kms.endpoint`. With `security_checker_class_name` configured, the CREATE/ALTER gate therefore never probes user-controlled destinations such as `gcs.service.host` and `gcs.oauth2.refresh-credentials-endpoint`, even though the FE/BE clients connect to them. A non-SUPER user who can create or alter a catalog can consequently steer these requests to an internal host. Declare every Google/GCS endpoint key through `ConnectorSecuritySurface.ofSsrfEndpoints(...)` and cover the gate with a provider test.
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergCatalogFactory.java:
##########
@@ -480,18 +496,27 @@ public static Map<String, String> buildCatalogProperties(IcebergCatalogPropertie
opts.put(GcpCredential.CREDENTIAL_PROVIDER_TYPE, credential.getCredentialProviderType().name());
putIfNotBlank(opts, GcpCredential.IMPERSONATION_SERVICE_ACCOUNT,
credential.getImpersonationServiceAccount());
- // Keep explicit FileIO choices. By default, S3 aliases use the GCP client factory,
- // while gs/HDFS paths use HadoopFileIO with the native fs.gs.* configuration
- // (the plugin does not bundle iceberg-gcp's GCSFileIO).
- opts.putIfAbsent(CatalogProperties.FILE_IO_IMPL, "org.apache.iceberg.io.ResolvingFileIO");
+ // S3 aliases use the GCP client factory; gs/HDFS stay on HadoopFileIO (pinned above)
+ // with the native fs.gs.* configuration emitted here.
opts.put(S3FileIOProperties.CLIENT_FACTORY, GcpS3FileIOAwsClientFactory.class.getName());
});
}));
+ if (IcebergCatalogProperties.TYPE_REST.equals(flavor) && hasRawGcsHadoopProperties(props)) {
Review Comment:
[P2] Preserve the Hadoop fallback for opaque REST catalogs using raw fs.s3a.* settings
This guard only recognizes `fs.gs.*`. For an opaque REST catalog with `warehouse=analytics` and raw `fs.s3a.impl`, `fs.s3a.endpoint=https://storage.googleapis.com`, `fs.s3a.access.key` and `fs.s3a.secret.key`, `GcsAuthResolver.guessIsGcs()` leaves `chosenS3` empty, so no `NativeGcsResolvingFileIO` pin is emitted. Because this PR adds `iceberg-gcp`, `ResolvingFileIO` now resolves a `gs://` metadata location to `GCSFileIO`, which ignores those `fs.s3a.*` HMAC settings; existing metadata/manifest reads then lose their configured credentials. Extend the REST fallback to cover this Hadoop dialect (while preserving explicit `io-impl` precedence) and add a regression test. This is separate from the fixed raw `fs.gs.*` case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org