DynamoDB Chart Failure #29920
Labels
data:connect:dynamodb
sqllab
Namespace | Anything related to the SQL Lab
viz:charts
Namespace | Anything related to viz types
Bug description
Very basic column retrieval from a DynamoDB table with numbers results in a failure in any Chart function.
How to reproduce the bug
Screenshots/recordings
Here is the stack trace:
2024-08-12 16:53:18,496:WARNING:superset.models.helpers:Query SELECT COUNT(*) FROM (SELECT NUMBER(TotalAlerts) FROM AlertsMetrics) AS virtual_table LIMIT 50000 on schema default failed Traceback (most recent call last): File "/app/superset/models/helpers.py", line 1032, in exc_query df = self.database.get_df(sql, self.schema, mutator=assign_column_label) File "/app/superset/models/core.py", line 604, in get_df self.db_engine_spec.execute(cursor, sqls[-1]) File "/app/superset/db_engine_specs/base.py", line 1599, in execute raise cls.get_dbapi_mapped_exception(ex) from ex File "/app/superset/db_engine_specs/base.py", line 1597, in execute cursor.execute(query) File "/app/superset_home/.local/lib/python3.10/site-packages/pydynamodb/util.py", line 23, in _wrapper return wrapped(*args, **kwargs) File "/app/superset_home/.local/lib/python3.10/site-packages/pydynamodb/cursor.py", line 85, in execute statement = Statement(operation) File "/app/superset_home/.local/lib/python3.10/site-packages/pydynamodb/model.py", line 172, in __init__ self._api_request = self._sql_parser.transform() File "/app/superset_home/.local/lib/python3.10/site-packages/pydynamodb/sql/parser.py", line 108, in transform return self.parser.transform() File "/app/superset_home/.local/lib/python3.10/site-packages/pydynamodb/sql/dml_select.py", line 171, in transform table_name_ = self.root_parse_results["table"] File "/app/superset_home/.local/lib/python3.10/site-packages/pydynamodb/sql/base.py", line 34, in root_parse_results self._root_parse_results = self.syntax_def.parseString(self._executed_statement) File "/usr/local/lib/python3.10/site-packages/pyparsing/core.py", line 1127, in parse_string raise exc.with_traceback(None) pyparsing.exceptions.ParseException: Expected CaselessKeyword 'FROM', found '(' (at char 12), (line:1, col:13)
Superset version
master / latest-dev
Python version
Not applicable
Node version
16
Browser
Not applicable
Additional context
Running in K8 cluster.
Checklist
The text was updated successfully, but these errors were encountered: