balsilliy commented on issue #18834:
URL: https://github.com/apache/superset/issues/18834#issuecomment-1092806244

   I tried the scripts then modified . It worked .
   
   @classmethod
       def execute(cls, cursor: Any, query: str, **kwargs: Any) -> None:
           if not cls.allows_sql_comments:
               query = sql_parse.strip_comments_from_sql(query)
           if cls.arraysize:
               cursor.arraysize = cls.arraysize
           try:
               if re.search("AS\s+\"\w+\"\s+AS\s+\"\w+\"", query):
                   query = re.sub("AS\s+\"\w+\"\s+", '', query, 1)
               cursor.execute(query)
           except Exception as ex:
               raise cls.get_dbapi_mapped_exception(ex)


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to