You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "boun (via GitHub)" <gi...@apache.org> on 2025/09/02 10:24:41 UTC

[I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

boun opened a new issue, #34984:
URL: https://github.com/apache/superset/issues/34984

   ### Bug description
   
   I am testing the 6.0.0rc1 eager to use spatial capabilites in duckdb with the openstreetmap chart titles. However after switching from 5.0.0 a `INSTALL spatial` command (or any other extension) fails with `duckdb error: Parser Error: syntax error at or near "AS"`. From reading #34856 I wonder if the changes in Superset's SQL dialect handling are the root for this.
   
   ### Screenshots/recordings
   
   <img width="652" height="655" alt="Image" src="https://github.com/user-attachments/assets/f2ca58af-b21c-4aa6-acfc-73aa85c8e3d6" />
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.10
   
   ### Node version
   
   16
   
   ### Browser
   
   Firefox
   
   ### Additional context
   
   ```
   2025-09-02 10:14:18,338:WARNING:superset.views.error_handling:SupersetErrorsException
   Traceback (most recent call last):
     File "/app/.venv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
       rv = self.dispatch_request()
     File "/app/.venv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
       return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
     File "/app/.venv/lib/python3.10/site-packages/flask_appbuilder/security/decorators.py", line 109, 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 1409, in time_function
       response = func(*args, **kwargs)
     File "/app/superset/views/base_api.py", line 92, in wraps
       return f(self, *args, **kwargs)
     File "/app/superset/utils/log.py", line 304, in wrapper
       value = f(*args, **kwargs)
     File "/app/superset/sqllab/api.py", line 406, in execute_sql_query
       command_result: CommandResult = command.run()
     File "/app/superset/utils/decorators.py", line 267, in wrapped
       return on_error(ex)
     File "/app/superset/utils/decorators.py", line 232, in on_error
       raise ex
     File "/app/superset/utils/decorators.py", line 260, in wrapped
       result = func(*args, **kwargs)
     File "/app/superset/commands/sql_lab/execute.py", line 105, in run
       status = self._run_sql_json_exec_from_scratch()
     File "/app/superset/commands/sql_lab/execute.py", line 158, in _run_sql_json_exec_from_scratch
       return self._sql_json_executor.execute(
     File "/app/superset/sqllab/sql_json_executer.py", line 110, in execute
       raise SupersetErrorsException(
   superset.exceptions.SupersetErrorsException: [SupersetError(message='duckdb error: Parser Error: syntax error at or near "AS"', error_type=<SupersetErrorType.GENERIC_DB_ENGINE_ERROR: 'GENERIC_DB_ENGINE_ERROR'>, level=<ErrorLevel.ERROR: 'error'>, extra={'engine_name': 'DuckDB', 'issue_codes': [{'code': 1002, 'message': 'Issue 1002 - The database returned an unexpected error.'}]})]
   ```
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
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-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
betodealmeida commented on issue #34984:
URL: https://github.com/apache/superset/issues/34984#issuecomment-3285890926

   Will push a fix upstream to `sqlglot`.


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

Posted by "boun (via GitHub)" <gi...@apache.org>.
boun commented on issue #34984:
URL: https://github.com/apache/superset/issues/34984#issuecomment-3285678393

   @betodealmeida yes, it is. Something between sending the query and its arrival at the database added this `AS`


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
betodealmeida commented on issue #34984:
URL: https://github.com/apache/superset/issues/34984#issuecomment-3285890210

   ```python
   >>> import sqlglot
   >>> sqlglot.parse_one('INSTALL http', 'duckdb')
   Alias(
     this=Column(
       this=Identifier(this=INSTALL, quoted=False)),
     alias=Identifier(this=http, quoted=False))
   >>> sqlglot.parse_one('INSTALL http', 'duckdb').sql('duckdb')
   'INSTALL AS http'
   ```


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
betodealmeida commented on issue #34984:
URL: https://github.com/apache/superset/issues/34984#issuecomment-3285879332

   <img width="789" height="453" alt="Image" src="https://github.com/user-attachments/assets/cd5ffcb8-c2d2-49d6-8604-c3af46b1ed42" />


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
betodealmeida commented on issue #34984:
URL: https://github.com/apache/superset/issues/34984#issuecomment-3286170462

   https://github.com/tobymao/sqlglot/pull/5882


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
betodealmeida commented on issue #34984:
URL: https://github.com/apache/superset/issues/34984#issuecomment-3285744749

   @boun thanks! I'll take a look, should be something simple.


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
betodealmeida commented on issue #34984:
URL: https://github.com/apache/superset/issues/34984#issuecomment-3285461726

   @boun is the full query `INSTALL http`? I'm confused by the error message since there's no `AS` in your query.


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
betodealmeida closed issue #34984: Superset 6.0.0rc1: Extensions can no longer be installed into duckdb
URL: https://github.com/apache/superset/issues/34984


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Superset 6.0.0rc1: Extensions can no longer be installed into duckdb [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #34984:
URL: https://github.com/apache/superset/issues/34984#issuecomment-3244734343

   <!-- Greeting -->
   Hi @boun! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
   
   <!-- Answer -->
   This issue is caused by changes in Superset 6.0.0rc1's SQL dialect handling, which introduced stricter parsing and validation. Superset does not have special handling for DuckDB's `INSTALL` commands, so these are treated as generic SQL. The new dialect logic likely misclassifies or alters the `INSTALL spatial` statement, resulting in the parser error you see. There is currently no documented workaround or solution for installing DuckDB extensions from within Superset 6.0.0rc1, and this problem is now tracked as [GitHub issue #34984](https://github.com/apache/superset/issues/34984). For now, you may need to install DuckDB extensions outside of Superset before connecting, as Superset expects extension setup to be managed externally if needed.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/642cd23c-c23f-4022-9bdc-7eccd9a66cd0?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/642cd23c-c23f-4022-9bdc-7eccd9a66cd0?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/642cd23c-c23f-4022-9bdc-7eccd9a66cd0?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/642cd23c-c23f-4022-9bdc-7eccd9a66cd0?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/642cd23c-c23f-4022-9bdc-7eccd9a66cd0?feedback_type=hallucination) | [Report šŸ›](https://app.dosu.dev/response-feedback/642cd23c-c23f-4022-9bdc-7eccd9a66cd0?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/642cd23c-c23f-4022-9bdc-7eccd9a66cd0?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34984)


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org