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

Case sensitivity of columns #163

Closed
13535048320 opened this issue Nov 23, 2023 · 2 comments
Closed

Case sensitivity of columns #163

13535048320 opened this issue Nov 23, 2023 · 2 comments

Comments

@13535048320
Copy link

13535048320 commented Nov 23, 2023

When I create a table using Spark-SQL, the column names are all uppercase letters, and the connector runs normally. However, when using Trino to create a table, the column names are all lowercase letters, and the connector will throw an exception, and all data is null.

Table demo created using trino.

CREATE TABLE demo (
  VBELN varchar
) WITH (
    format = 'PARQUET',
    location = 's3a://uat-warehouse/demo.db'
);

image

Table ods_zpp004 created using spark sql. This is running normally.

CREATE TABLE IF NOT EXISTS `ODS_ZPP004` (
  `AUFNR`  STRING  COMMENT "Order" 
)
USING iceberg
TBLPROPERTIES ('format-version'='2')
COMMENT 'Issue order info' ;

image

"iceberg.tables.default-id-columns": "VBELN"
image

image

@bryanck
Copy link
Contributor

bryanck commented Nov 23, 2023

I opened a PR to add case-insensitive lookups of columns during record conversion, to handle this case where the column name cases between the Kafka record and Iceberg schema don't match.

@bryanck
Copy link
Contributor

bryanck commented Nov 29, 2023

The fix has been merged, feel free to reopen this if your issue is not resolved in the latest release.

@bryanck bryanck closed this as completed Nov 29, 2023
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

2 participants