Table with name does not exist
- 主要言語
- Python
- スター
- 187
- フォーク
- 112
- 平均マージ
- 13時間 29分
- マージ済み PR(30日)
- 17
説明
### What happens?
Hello, I am able to perform the following set of steps successfully using duckdb shell (cli) but it breaks when done via the python library.
```
INSTALL aws;
INSTALL httpfs;
INSTALL iceberg;
CREATE OR REPLACE SECRET (
TYPE s3,
PROVIDER credential_chain
);
ATTACH OR REPLACE 'arn:aws:s3tables:...:bucket/s3_table' AS s3_tables_db (
TYPE iceberg,
ENDPOINT_TYPE s3_tables
);
# This works from the shell
FROM s3_tables_db.core.product LIMIT 5;
```
Any help at all would be appreciated.
### To Reproduce
```python
import duckdb
conn = duckdb.connect()
conn.install_extension("aws")
conn.install_extension("httpfs")
conn.install_extension("iceberg")
conn.sql(
"""
CREATE OR REPLACE SECRET (
TYPE s3,
PROVIDER credential_chain
);
"""
)
conn.sql(
"""
ATTACH OR REPLACE 'arn:aws:s3tables:...:bucket/s3_table' AS s3_tables_db (
TYPE iceberg,
ENDPOINT_TYPE s3_tables
);
"""
)
# Works
x = conn.execute("show all tables;").fetchall()
# Errors out
y = conn.execute(
"""
FROM s3_tables_db.core.product LIMIT 5;
"""
).fetchall()
```
Output
```
Exception has occurred: CatalogException
Catalog Error: Table with name product does not exist!
Did you mean "s3_tables_db.core.product"?
```
### OS:
OSX
### DuckDB Package Version:
1.4.1
### Python Version:
3.12
### Full Name:
Jibi Abraham
### Affiliation:
Razor Group
### What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
### Did you include all relevant data sets for reproducing the issue?
No - Other reason (please specify in the issue body)
### Did you include all code required to reproduce the issue?
- [x] Yes, I have
### Did you include all relevant configuration to reproduce the issue?
- [x] Yes, I have
コントリビューションガイド
調査の方向性
まず、提供されている Python reproduction を DuckDB 1.4.1 で実行し、その conn.execute の動作を同等の DuckDB shell クエリと比較します。次に、Python 呼び出しに関係する attach とテーブル検索のエントリポイントを追跡し、その後、FROM s3_tables_db.core.product が両方の環境で同じ行を返すことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, python
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100