mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
This commit is contained in:
committed by
GitHub
parent
a2947d0c23
commit
c9aa4a1f84
@@ -1088,7 +1088,7 @@ class ExploreMixin: # pylint: disable=too-many-public-methods
|
||||
_("Virtual dataset query cannot consist of multiple statements")
|
||||
)
|
||||
|
||||
sql = script.statements[0].format()
|
||||
sql = script.statements[0].format(comments=False)
|
||||
if not sql:
|
||||
raise QueryObjectValidationError(_("Virtual dataset query cannot be empty"))
|
||||
return sql
|
||||
|
||||
Reference in New Issue
Block a user