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

   ### Bug description
   
   1. I have changed the default metadata database,to `MySQL`
   2. SQLGLOT_DIALECTS_EXTENSIONS has exception, as follower
   ```python
   2025-01-15 14:14:47,830:ERROR:superset.app:Failed to create app
   Traceback (most recent call last):
     File "/app/superset/app.py", line 40, in create_app
       app_initializer.init_app()
     File "/app/superset/initialization/__init__.py", line 487, in init_app
       self.configure_sqlglot_dialects()
     File "/app/superset/initialization/__init__.py", line 550, in 
configure_sqlglot_dialects
       SQLGLOT_DIALECTS.update(self.config["SQLGLOT_DIALECTS_EXTENSIONS"])
   KeyError: 'SQLGLOT_DIALECTS_EXTENSIONS'
   [2025-01-15 14:14:47 +0800] [37] [ERROR] Exception in worker process
   Traceback (most recent call last):
     File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 
609, in spawn_worker
       worker.init_process()
     File 
"/usr/local/lib/python3.10/site-packages/gunicorn/workers/gthread.py", line 95, 
in init_process
       super().init_process()
     File "/usr/local/lib/python3.10/site-packages/gunicorn/workers/base.py", 
line 134, in init_process
       self.load_wsgi()
     File "/usr/local/lib/python3.10/site-packages/gunicorn/workers/base.py", 
line 146, in load_wsgi
       self.wsgi = self.app.wsgi()
     File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 
67, in wsgi
       self.callable = self.load()
     File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", 
line 58, in load
       return self.load_wsgiapp()
     File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", 
line 48, in load_wsgiapp
       return util.import_app(self.app_uri)
     File "/usr/local/lib/python3.10/site-packages/gunicorn/util.py", line 424, 
in import_app
       app = app(*args, **kwargs)
     File "/app/superset/app.py", line 40, in create_app
       app_initializer.init_app()
     File "/app/superset/initialization/__init__.py", line 487, in init_app
       self.configure_sqlglot_dialects()
     File "/app/superset/initialization/__init__.py", line 550, in 
configure_sqlglot_dialects
       SQLGLOT_DIALECTS.update(self.config["SQLGLOT_DIALECTS_EXTENSIONS"])
   KeyError: 'SQLGLOT_DIALECTS_EXTENSIONS'
   [2025-01-15 14:14:47 +0800] [37] [INFO] Worker exiting (pid: 37)
   ```
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   4.1.1
   
   ### Python version
   
   3.10
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] 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: [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