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

COLUMN_NOT_FOUND at occasionally with trino|presto #1

Open
marun790 opened this issue Jan 24, 2022 · 10 comments
Open

COLUMN_NOT_FOUND at occasionally with trino|presto #1

marun790 opened this issue Jan 24, 2022 · 10 comments

Comments

@marun790
Copy link

Hi Team,
when executing a select query using appache superset + presto|trino getting column not found that too occasionally.
the same error is occurring in DBeaver also
but able to see the same column while executing aql > show bins.

also we enabled 'aerospike.case-insensitive-identifiers' in aerospike trino connector.

Trino Error
trino error: {'message': "line 1:14: Column 'name' cannot be resolved", 'errorCode': 47, 'errorName': 'COLUMN_NOT_FOUND', 'errorType': 'USER_ERROR', 'errorLocation': {'lineNumber': 1, 'columnNumber': 14}, 'failureInfo': {'type': 'io.trino.spi.TrinoException', 'message': "line 1:14: Column 'name' cannot be resolved", 'suppressed': [], 'stack': ['io.trino.sql.analyzer.SemanticExceptions.semanticException(SemanticExceptions.java:48)', 'io.trino.sql.analyzer.SemanticExceptions.semanticException(SemanticExceptions.java:43)', 'io.trino.sql.analyzer.SemanticExceptions.missingAttributeException(SemanticExceptions.java:33)'

Please help us on this.

Thanks
Arun M

@reugn
Copy link
Member

reugn commented Jan 24, 2022

Hi @marun790. I've added support for the aerospike.case-insensitive-identifiers configuration property and updated default Trino and the connector versions. Please pull the changes and let us know if that fixed the issue.

@marun790
Copy link
Author

hi @reugn , thanks for the update, we will check on this.

@marun790
Copy link
Author

Hi @reugn we have tried the fix but didn’t helped, can you please help us on this.

@reugn
Copy link
Member

reugn commented Jan 31, 2022

@marun790, could you please provide the table structure and steps to reproduce?

@marun790
Copy link
Author

marun790 commented Feb 2, 2022

@reugn the table structure is 48 column with all are string data type, and 2 million records. and those all are created by java application with micronaut framework.
tried to recreate the same using insert script with 67 column but that is not helping, will try on the same and will let you know if I can recreate the scenario in any other way as-well.

@NikhilPrasad0497
Copy link

NikhilPrasad0497 commented Feb 28, 2024

Hi, I am using Trino CLI for Aerospike and facing the same issue when trying to query a column in Aerospike DB. I have created a secondary index on AerospikeDB but the issue is still persisting.

ERROR:

2024-02-28T13:11:24.592+0530 INFO dispatcher-query-346 io.trino.event.QueryMonitor TIMELINE: Query 20240228_074124_00024_wtnbu :: FAILED (COLUMN_NOT_FOUND) :: elapsed 2ms :: planning 2ms :: waiting 0ms :: scheduling 0ms :: running 0ms :: finishing 0ms :: begin 2024-02-28T13:11:24.589+05:30 :: end 2024-02-28T13:11:24.591+05:30

SQL:

select isDeceased from customers where isDeceased is not null;

isDeceased is a varchar in this case, the set has huge amount of data (more than 5 Million).

@reugn
Copy link
Member

reugn commented Feb 28, 2024

@NikhilPrasad0497, have you enabled the aerospike.case-insensitive-identifiers configuration property?

@NikhilPrasad0497
Copy link

Hi @reugn yes we have this option aerospike.case-insensitive-identifiers set

@reugn
Copy link
Member

reugn commented Feb 28, 2024

Ensure the configuration value is set in the logs when the Trino server initializes. Additionally, run describe on your table to check if the column exists and is of the correct type.

@NikhilPrasad0497
Copy link

Sure, we have done this. The Column does not appear while running the describe table.

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