[BUG] JSQLParser Version 4.7 : WithItems moved inside Select #1896
Replies: 7 comments
-
Greetings! Thank you for your question. Although I have read it carefully three time and I am still not sure what your are asking for. Are you trying to to eliminate the |
Beta Was this translation helpful? Give feedback.
-
Here is the Java API for |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
And I have one more question about this bug #1856 I'm migrating from 4.0 to 4.7 and IGNORE NULLS in ARRAY_AGG parsed successfully in 4.2, but does not in 4.3. Can you confirm that it is the same issue which is described in here ? This is the failed query
|
Beta Was this translation helpful? Give feedback.
-
If you are interested in the
For various reasons, but the most obvious is the fact that a) the |
Beta Was this translation helpful? Give feedback.
-
Very likely, |
Beta Was this translation helpful? Give feedback.
-
Thank you for the answers |
Beta Was this translation helpful? Give feedback.
-
Failing SQL Feature:
I'm not sure is it a bug or feature, but unfortunately it breaks our current behavior. After migration from 4.5 to 4.7 the query
WITH events as (select * from table1) select t1 from events
is parsed with select body including WithItems. In previous versions Select.getSelectBody() was returning select without WithItems.So Select.getSelectBody (I know it is deprecated) will result different in 4.5 and 4.7:
4.5:
select t1 from events
4.7
WITH events as (select * from table1) select t1 from events
I see that Select structure was changed:
In 4.5 there was separately
selectBody
andwithItems
In 4.7
withItems
are included intoselect
The question:
Can I get select without WithItems (like it was in 4.5)?
SQL Example:
Software Information:
Tips:
The same query has different structure in different versions of parser
4.5 Structure:
4.7 Structure:
Thanks in advance,
Regards, Serhii Zapalskyi
Beta Was this translation helpful? Give feedback.
All reactions