Auburg commented on issue #34105: URL: https://github.com/apache/superset/issues/34105#issuecomment-3049299382
Here's a log of the error when i save: `2025-07-08 14:56:57,112:INFO:werkzeug:10.5.0.1 - - [08/Jul/2025 14:56:57] "GET /api/v1/me/ HTTP/1.1" 200 - 2025-07-08 14:57:11,546:DEBUG:superset.stats_logger:[stats_logger] (incr) DatasetRestApi.post.warning 2025-07-08 14:57:11,547:ERROR:flask_appbuilder.api:Error parsing near '{' at line 3:6 Traceback (most recent call last): File "/app/superset/sql/parse.py", line 267, in _parse return sqlglot.parse(script, dialect=dialect) File "/app/.venv/lib/python3.10/site-packages/sqlglot/__init__.py", line 102, in parse return Dialect.get_or_raise(read or dialect).parse(sql, **opts) File "/app/.venv/lib/python3.10/site-packages/sqlglot/dialects/dialect.py", line 991, in parse return self.parser(**opts).parse(self.tokenize(sql), sql) File "/app/.venv/lib/python3.10/site-packages/sqlglot/parser.py", line 1507, in parse return self._parse( File "/app/.venv/lib/python3.10/site-packages/sqlglot/parser.py", line 1576, in _parse expressions.append(parse_method(self)) File "/app/.venv/lib/python3.10/site-packages/sqlglot/parser.py", line 1817, in _parse_statement expression = self._parse_set_operations(expression) if expression else self._parse_select() File "/app/.venv/lib/python3.10/site-packages/sqlglot/parser.py", line 3136, in _parse_select from_ = self._parse_from() File "/app/.venv/lib/python3.10/site-packages/sqlglot/parser.py", line 3445, in _parse_from exp.From, comments=self._prev_comments, this=self._parse_table(joins=joins) File "/app/.venv/lib/python3.10/site-packages/sqlglot/parser.py", line 3899, in _parse_table self._parse_table_parts(schema=schema, is_db_reference=is_db_reference) File "/app/.venv/lib/python3.10/site-packages/sqlglot/parser.py", line 3831, in _parse_table_parts self.raise_error(f"Expected table name but got {self._curr}") File "/app/.venv/lib/python3.10/site-packages/sqlglot/parser.py", line 1620, in raise_error raise error �sqlglot.errors.ParseError: Expected table name but got <Token token_type: TokenType.L_BRACE, text: {, line: 3, col: 6, start: 15, end: 15, comments: []>. Line 3, Col: 6. SELECT * FROM {{ param1 }} The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/app/.venv/lib/python3.10/site-packages/flask_appbuilder/api/__init__.py", line 111, in wraps return f(self, *args, **kwargs) File "/app/superset/views/base_api.py", line 120, in wraps duration, response = time_function(f, self, *args, **kwargs) File "/app/superset/utils/core.py", line 1369, in time_function response = func(*args, **kwargs) File "/app/superset/utils/log.py", line 304, in wrapper value = f(*args, **kwargs) File "/app/superset/views/base_api.py", line 92, in wraps return f(self, *args, **kwargs) File "/app/superset/datasets/api.py", line 349, in post new_model = CreateDatasetCommand(item).run() File "/app/superset/utils/decorators.py", line 266, in wrapped return on_error(ex) File "/app/superset/utils/decorators.py", line 236, in on_error raise ex File "/app/superset/utils/decorators.py", line 259, in wrapped result = func(*args, **kwargs) File "/app/superset/commands/dataset/create.py", line 51, in run dataset.fetch_metadata() File "/app/superset/connectors/sqla/models.py", line 1801, in fetch_metadata new_columns = self.external_metadata() File "/app/superset/connectors/sqla/models.py", line 1381, in external_metadata return get_virtual_table_metadata(dataset=self) File "/app/superset/connectors/sqla/utils.py", line 109, in get_virtual_table_metadata parsed_script = SQLScript(sql, engine=db_engine_spec.engine) File "/app/superset/sql/parse.py", line 670, in __init__ self.statements = statement_class.split_script(script, engine) File "/app/superset/sql/parse.py", line 294, in split_script for ast in cls._parse(script, engine) File "/app/superset/sql/parse.py", line 270, in _parse raise SupersetParseError( superset.exceptions.SupersetParseError: Error parsing near '{' at line 3:6 2025-07-08 14:57:11,547:INFO:werkzeug:10.5.0.1 - - [08/Jul/2025 14:57:11] "POST /api/v1/dataset/ HTTP/1.1" 500 -` -- 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: notifications-unsubscr...@superset.apache.org 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