-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[FEATURE] JSQLParser 5.1: Table function JSON_TABLE
not supported
#2209
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
Comments
Greetings. the table function SELECT id
, knowledge_type_code
, knowledge_data
, url_routing
, keyword
, update_by
, update_time
, sort
FROM "SUNYA-SYSTEM".sys_knowledge_base
WHERE ( ( Json_Unquote( Json_Extract( knowledge_data, '$.title' ) ) LIKE '%记%'
OR EXISTS ( SELECT 1
FROM dual AS drug
WHERE drug.drugsname LIKE '%记%' ) )
AND knowledge_type_code = 'literatureGuidelines' )
ORDER BY sort ASC
; |
JSON_TABLE
not supported
JSON_TABLE
not supportedJSON_TABLE
not supported
However, the script you provided failed to execute on the client side. [22000][-2207] There was an error near line 15: member access expression that could not be resolved [drug.drugsname] |
Yes of course, because I replaced your table function and altered the meaning of your query. |
Ok, thank you. Is there any possibility to consider support in the future? |
Duplicate #2185 |
Failing SQL Feature:
WITH ROLLUP
can't be parsedSQL Example:
SELECT id,knowledge_type_code,knowledge_data,url_routing,keyword,update_by,update_time,sort FROM "SUNYA-SYSTEM".sys_knowledge_base
WHERE ((JSON_UNQUOTE(JSON_EXTRACT(knowledge_data, '$.title')) LIKE '%记%' OR EXISTS (SELECT 1 FROM JSON_TABLE( knowledge_data, '$.drugsList[*]' COLUMNS(drugsName VARCHAR(255) PATH '$.drugsName') ) AS drug WHERE drug.drugsName LIKE '%记%')) AND knowledge_type_code = 'literatureGuidelines') ORDER BY sort ASC;
Software Information:
detail error
Exception in thread "main" net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "EXISTS" "EXISTS"
at line 4, column 78.
Was expecting one of:
Caused by: java.util.concurrent.ExecutionException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "EXISTS" "EXISTS"
at line 4, column 78.
The text was updated successfully, but these errors were encountered: