Skip to content

to_pandas(), to_arrow() fail because case_sensitive doesn't work if column in row_filter doesn't match the case even if case_sensitive is set to False in scan #1177

Open
@leonidmakarovsky

Description

@leonidmakarovsky

Apache Iceberg version

0.7.1 (latest release)

Please describe the bug 🐞

I have a table with column business_time_hour (all lower case). If I capitalize one character, to_pandas() (and to_arrow()) fails. My code is snippet is:

from pyiceberg import catalog
cat = catalog.load_catalog(**{'type':'glue'})
table = cat.load_table('namespace' + '.' + 'table')
scan = table.scan(row_filter = "business_time_Hour = '2024-09-15 05:00:00'", case_sensitive = False)

The above line passes

df = scan.to_pandas()

The above line fails with the following message

ValueError: Could not find field with name business_time_Hour, case_sensitive=True

Please note that 1. I set case_sensitive to False in the scan method. 2. character 'H' in business_time_hour is capitalized while the actual column name has all lower case letters.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions