serenajiang
serenajiang
Ran into this problem too 😱 I think the fix might be better done in the underlying sql parsing rather than in `get_type`. Both queries above should have roughly the...
@zhaoyongjie I tested on apache master. This problem specifically occurs when there is no space between `AS` and the select statement. i.e. `WITH test AS(select country, ...`. ``` >>> sqlparse.parse("WITH...
WITH statements also break if you name the temporary table `events`. Some reserved keyword issue? ``` >>> sqlparse.parse("WITH events AS (SELECT 1 AS a) SELECT * FROM events")[0].get_type() 'UNKNOWN' >>>...