Repository navigation
Respect remote_url_allow_hosts in the Hive metastore catalog - #119353
Conversation
…l_allow_hosts` when connecting to the metastore, as the other catalog types already do.
|
Workflow [PR], commit [a5f230e] Summary: ❌
AI ReviewSummary
Missing context / blind spots
Final VerdictStatus: ✅ Approve. No code changes requested; normal CI must complete. |
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Pull request overview
This PR fixes Hive metastore catalog behavior to honor remote_url_allow_hosts, preventing disallowed HMS endpoints from being contacted.
Changes:
- Add a
RemoteHostFiltercheck before opening the Thrift socket inHiveCatalog. - Update
HiveCatalogto useContextso it can access the configured host filter. - Add an integration test covering both “no filter configured” and “empty allow-list” cases.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/integration/test_allowed_url_from_config/test.py | Adds an integration test validating host filtering behavior for the Hive catalog. |
| src/Databases/DataLake/HiveCatalog.cpp | Enforces remote_url_allow_hosts by checking host/port via Context before connecting to HMS. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Build profile diff (arm_release)Commit See the job log for details. |
|
03821_drop_workload_during_query_race fail is not related to this pr |
Backport #119353 to 26.10: Respect `remote_url_allow_hosts` in the Hive metastore catalog
Backport #119353 to 26.9: Respect `remote_url_allow_hosts` in the Hive metastore catalog
Cherry pick #119353 to 26.3: Respect `remote_url_allow_hosts` in the Hive metastore catalog
Cherry pick #119353 to 26.8: Respect `remote_url_allow_hosts` in the Hive metastore catalog
Backport #119353 to 26.8: Respect `remote_url_allow_hosts` in the Hive metastore catalog
Backport #119353 to 26.3: Respect `remote_url_allow_hosts` in the Hive metastore catalog
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Respect
remote_url_allow_hostsin the Hive metastore catalogWorkflow [PR]
Sync PR [sync-upstream/pr/119353]
Version info
26.11.1.149-master(included in26.11and later)26.10.3.13,26.9.26.23,26.8.35.23,26.3.61.16