You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/08/23 00:59:08 UTC
[GitHub] timifasubaa commented on a change in pull request #5703: [sqlparse]
fix sqlparse bug
timifasubaa commented on a change in pull request #5703: [sqlparse] fix sqlparse bug
URL: https://github.com/apache/incubator-superset/pull/5703#discussion_r212155319
##########
File path: superset/sql_parse.py
##########
@@ -128,7 +129,8 @@ def __extract_from_token(self, token):
continue
if item.ttype in Keyword:
- if self.__is_result_operation(item.value):
+ if (self.__is_result_operation(item.value) or
+ item.value.upper() == ON_KEYWORD):
Review comment:
I tested using continue instead of the break statement and it broke in some cases because it included the group by column in the table names.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org