apache / apache/iceberg-python

Load catalog 'bi_31' but give me catalog 'hive'

Open
#2,541 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.1k
Forks
581
Avg merge
1d 17h
Merged PRs (30d)
78

Description

### Question

I use the following code to load the catalog 'bi_31', but it always ends up loading the 'hive' catalog. Does it only support loading the default catalog?

````
catalog_config = {
"type":"hive",
'uri': "thrift://10.108.*.*:32087",
'warehouse': "s3a://*/*-*-c046a938/bi_31",
's3.endpoint': "https://ecs01.*.com:9021",
's3.access-key-id': "AKIA7EB2AEE90E****",
's3.secret-access-key': "yde7zJK84b4nQEU/95epyi7l****",
}
catalog = load_catalog(name="bi_31", **catalog_config)
````

Environment Details:
PyIceberg Version: 0.10.0
PyArrow Version: 21.0.0
Boto3 Version: 1.34.54
Python Version: 3.10.1

Any answers or help would be greatly appreciated.

Contributor guide

No contributing guide indexed for this repository

Research direction

Begin with the load_catalog entry point and trace how the supplied name and type are handled; the issue names no repository file or test. Reproduce the example with the provided catalog_config and verify which catalog is selected. Done means the requested bi_31 catalog is loaded unambiguously, or the behavior is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.