You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I proposed a fix for this in the sql parser we are using: apache/datafusion-sqlparser-rs#1493
We are now just waiting for it to be merged and for a new version of the parser to be released.
In the meantime, you can use a window function instead to count row numbers:
SELECT
jt.*,
row_number() OVER () AS row_num
FROM JSON_TABLE(
'["Alice", "Bob", "Charlie"]',
'$[*]' COLUMNS(
name VARCHAR(50) PATH'$')
) AS jt
Introduction
Error with json_table in mariadb.
To Reproduce
Query work correctly with phpmyadmin. The SQL code comes from the page : https://sql.datapage.app/blog.sql?post=JSON%20in%20SQL%3A%20A%20Comprehensive%20Guide
Actual behavior
Not working.
Screenshots
Expected behavior
Version information
The text was updated successfully, but these errors were encountered: