serenajiang edited a comment on issue #11310: URL: https://github.com/apache/incubator-superset/issues/11310#issuecomment-712476395
@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 test AS(SELECT 1 AS a) SELECT * FROM test")[0].get_type() 'UNKNOWN' >>> sqlparse.parse("WITH test AS (SELECT 1 AS a) SELECT * FROM test")[0].get_type() 'SELECT' ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org