-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Trino-Pinot-Connector throws error when a table with a JSON dimensional fields with invalid JSON is queried. #19663
Comments
Got a suggestion to use dynamic tables but it does not help. Here is the corresponding query that returned the same error:
|
cc: @elonazoulay |
The JSON value stored in some records is invalid JSON. Nevertheless, Presto handles the invalid JSON and does not fail the whole query. The following query succeeds:
However, the following query throws: invald json vlaue:
|
Can you give an example of invalid json? Also, how this is handled differently in presto. I will take a look. |
cc @nizarhejazi - A recent pr added support for query options. Can you try nullHandlingEnabled=true at the end of your query and switch to using the dynamic table (query in double quotes)? |
@elonazoulay I answered why we cannot simply switch to dynamic tables in another ticket. Also, I am waiting on #19078 to make it to a SEP release. |
Got it. Can you share examples of the invalid json? Is it empty or malformed? |
It is malformed JSON. On our end, we will work on addressing this data quality issue (I hit it because of SELECT-ing all columns). |
Running simple Trino SQL queries against Pinot table that has JSON dimensional fields with null handling enabled and an invalid JSON value throws the following error:
Cannot convert value to JSON: ''
SQL query:
SELECT * FROM "pinotcluster2"."default"."role_with_company_object_history_record00011" LIMIT 1000;
Error logs:
Table has the following property:
"nullHandlingEnabled": true
Note: pushing query options (e.g.
option(enableNullHandling)
) is currently missing from Trino.The text was updated successfully, but these errors were encountered: