JustGui opened a new issue, #31768: URL: https://github.com/apache/superset/issues/31768
### Bug description Trino queries using functions like **JSON_QUERY** are working on 4.0.2 but are in error on versions >=4.1.0, with different errors between the Dashboards/Charts and SQL Labs depending on the version The errors are different between version 4.1.0rc1/rc2 and the newer ones ### Screenshots/recordings ### SQL LAB ISSUE Below is an example of a query which works on 4.0.2 but returns an DLL/DLM error since 4.1.0rc3 **Working query and list of all tables between 4.0.2 and 4.1.0rc2** <img width="2056" alt="query_4_0_2" src="https://github.com/user-attachments/assets/7adbeeb9-d617-47af-a653-473a66b4bfec" /> **Non working query and not all the list of tables on 4.0.1rc3 and newer** <img width="2056" alt="query_4_1_1" src="https://github.com/user-attachments/assets/45253ed2-221d-4d10-ac6c-0cdb1fe6fc67" /> If I activate 'Allow DDL and DML' in SQL Lab, like below, it will work in SQL Lab but still not in the charts <img width="492" alt="Screenshot 2025-01-09 at 17 08 29" src="https://github.com/user-attachments/assets/a89eb948-e54a-47ad-8a1b-565b53b60ef9" /> ### CHART ISSUE Below is an example of a chart with a **JSON_QUERY(aggregatedJSON, 'lax $.serialnumber[*]?(@.type == "serialnumber").value' OMIT QUOTES)** as serialnumber line 33 of the dataset **Working chart on 4.0.2** <img width="2055" alt="chart_4_0_2" src="https://github.com/user-attachments/assets/bb1cd814-109d-4859-bd0c-1d4f84527d5c" /> **Non working chart on 4.1.0rc1/rc2** <img width="2056" alt="chart_4_1_0_rc12" src="https://github.com/user-attachments/assets/fe011be2-54d8-4e55-94af-f7a6fc3e9cfe" /> **Non working chart on versions >= 4.1.0rc3** <img width="2056" alt="chart_4_1_1" src="https://github.com/user-attachments/assets/168a8990-7e58-4408-99a4-dd4ceb8d2a4c" /> In this case, as the DDL/DML option is only for SQL Lab, nothing changes for the charts ### Superset version 4.1.1 ### Python version 3.10 ### Node version I don't know ### Browser Not applicable ### Additional context _No response_ ### Checklist - [X] I have searched Superset docs and Slack and didn't find a solution to my problem. - [X] I have searched the GitHub issue tracker and didn't find a similar bug report. - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
