Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binder Error: Table "iceberg_scan_deletes" does not have a column named "file_path" #60

Open
fuhaiq opened this issue Jul 6, 2024 · 2 comments

Comments

@fuhaiq
Copy link

fuhaiq commented Jul 6, 2024

I am using flink to write data into iceberg table, here's table definition and testing data

CREATE TABLE test (
id INT,
name STRING,
PRIMARY KEY(`id`) NOT ENFORCED
) WITH (
'connector' = 'iceberg',
'catalog-name'='hadoop_catalog',
'catalog-type'='hadoop',
'warehouse'='s3a://umbrella/hadoop/warehouse',
'table-name' = 'test',
'format-version'='2',
'write.upsert.enabled'='true'
);

INSERT INTO test VALUES (1, 'A'), (2, 'B'), (3, 'C');

In duckdb side, It could successfully read iceberg data from s3

D select * FROM iceberg_scan('s3://umbrella/hadoop/warehouse/default_database/test');
┌───────┬─────────┐
│  id   │  name   │
│ int32 │ varchar │
├───────┼─────────┤
│     1 │ A       │
│     2 │ B       │
│     3 │ C       │
└───────┴─────────┘

Then update record whose id = 3 by using upsert in flink

INSERT INTO test /*+ OPTIONS('upsert-enabled'='true') */ VALUES (3, 'C-C')

But I got ' Binder Error: Table "iceberg_scan_deletes" does not have a column named "file_path" ' when querying it again in duckdb

D select * FROM iceberg_scan('s3://umbrella/hadoop/warehouse/default_database/test');
Binder Error: Table "iceberg_scan_deletes" does not have a column named "file_path"

I am using flink-1.18.1 + iceberg-1.5.2 + duckdb-1.0.0, I suppose this is caused by version compatibility ? What's the recommanded iceberg version in duckdb-1.0.0 ? Thanks!

@humaidkidwai
Copy link

I am using AWS Firehose to write to Iceberg tables. It uses Iceberg V2. I get the same error when I read the table with DuckDB

@UserHIJ
Copy link

UserHIJ commented Feb 16, 2025

I wonder if this is an issue with lack of existence of the delete files found in MOR for v2. I'm generating v2 iceberg and for some reason I'm getting no delete files. And I can't query the table to see if its working because I'm getting the same binder error too. Further .. IB v2 allows equality and positional deletes -- very different naming patterns on the back end. And if I'm guessing the first couple gens of IB will see equality deletes much more than positional .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants