You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2025/06/20 17:58:52 UTC

(superset) branch dremio-dialect created (now 19fdf54644)

This is an automated email from the ASF dual-hosted git repository.

beto pushed a change to branch dremio-dialect
in repository https://gitbox.apache.org/repos/asf/superset.git


      at 19fdf54644 feat: initial Dremio sqlglot dialect

This branch includes the following new commits:

     new 19fdf54644 feat: initial Dremio sqlglot dialect

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(superset) 01/01: feat: initial Dremio sqlglot dialect

Posted by be...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch dremio-dialect
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 19fdf546446e643865b5be9ff5f3702c0169db6e
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Fri Jun 20 10:58:44 2025 -0700

    feat: initial Dremio sqlglot dialect
---
 docker-compose.yml                  | 12 +++++++-----
 docker/.env                         |  8 +++++---
 superset-frontend/package-lock.json | 26 +++-----------------------
 superset/db_engine_specs/duckdb.py  |  2 +-
 superset/sql/dialects/__init__.py   |  3 ++-
 5 files changed, 18 insertions(+), 33 deletions(-)

diff --git a/docker-compose.yml b/docker-compose.yml
index 12bcc8dd82..3fa59d61f4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -63,9 +63,10 @@ services:
     container_name: superset_cache
     restart: unless-stopped
     ports:
-      - "127.0.0.1:6379:6379"
+      - "127.0.0.1:6380:6380"
     volumes:
       - redis:/data
+    command: ["redis-server", "--port", "6380"]
 
   db:
     env_file:
@@ -77,10 +78,11 @@ services:
     container_name: superset_db
     restart: unless-stopped
     ports:
-      - "127.0.0.1:5432:5432"
+      - "127.0.0.1:5433:5433"
     volumes:
       - db_home:/var/lib/postgresql/data
       - ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
+    command: postgres -c port=5433
 
   superset:
     env_file:
@@ -109,7 +111,7 @@ services:
     container_name: superset_websocket
     build: ./superset-websocket
     ports:
-      - 8080:8080
+      - 8082:8082
     extra_hosts:
       - "host.docker.internal:host-gateway"
     depends_on:
@@ -133,9 +135,9 @@ services:
       # do not use this docker compose in production
       - ./docker/superset-websocket/config.json:/home/superset-websocket/config.json
     environment:
-      - PORT=8080
+      - PORT=8082
       - REDIS_HOST=redis
-      - REDIS_PORT=6379
+      - REDIS_PORT=6380
       - REDIS_SSL=false
 
   superset-init:
diff --git a/docker/.env b/docker/.env
index 2ae0578bfc..70f1583c9e 100644
--- a/docker/.env
+++ b/docker/.env
@@ -27,20 +27,22 @@ DATABASE_HOST=db
 # Make sure you set this to a unique secure random value on production
 DATABASE_PASSWORD=superset
 DATABASE_USER=superset
+DATABASE_PORT=5433
 
 EXAMPLES_DB=examples
 EXAMPLES_HOST=db
 EXAMPLES_USER=examples
 # Make sure you set this to a unique secure random value on production
 EXAMPLES_PASSWORD=examples
-EXAMPLES_PORT=5432
+EXAMPLES_PORT=5433
 
 # database engine specific environment variables
 # change the below if you prefer another database engine
-DATABASE_PORT=5432
+DATABASE_PORT=5433
 DATABASE_DIALECT=postgresql
 POSTGRES_DB=superset
 POSTGRES_USER=superset
+POSTGRES_PORT=5433
 # Make sure you set this to a unique secure random value on production
 POSTGRES_PASSWORD=superset
 #MYSQL_DATABASE=superset
@@ -51,7 +53,7 @@ POSTGRES_PASSWORD=superset
 # Add the mapped in /app/pythonpath_docker which allows devs to override stuff
 PYTHONPATH=/app/pythonpath:/app/docker/pythonpath_dev
 REDIS_HOST=redis
-REDIS_PORT=6379
+REDIS_PORT=6380
 
 FLASK_DEBUG=true
 SUPERSET_APP_ROOT="/"
diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json
index b10c58bf80..8162677e48 100644
--- a/superset-frontend/package-lock.json
+++ b/superset-frontend/package-lock.json
@@ -11752,7 +11752,10 @@
       "version": "0.22.35",
       "resolved": "https://registry.npmjs.org/@types/cheerio/-/cheerio-0.22.35.tgz",
       "integrity": "sha512-yD57BchKRvTV+JD53UZ6PD8KWY5g5rvvMLRnZR3EQBCZXiDT/HR+pKpMzFGlWNhFrXlo7VPZXtKvIEwZkAWOIA==",
+      "dev": true,
       "license": "MIT",
+      "optional": true,
+      "peer": true,
       "dependencies": {
         "@types/node": "*"
       }
@@ -11989,27 +11992,6 @@
       "integrity": "sha512-cFq+fO/isvhvmuP/+Sl4K4jtU6E23DoivtbO4r50e3odaxAiVdbfSYRDdJ4gCdxx+3aRjhphS5ZMwIH4hFy/Cw==",
       "license": "MIT"
     },
-    "node_modules/@types/enzyme": {
-      "version": "3.10.18",
-      "resolved": "https://registry.npmjs.org/@types/enzyme/-/enzyme-3.10.18.tgz",
-      "integrity": "sha512-RaO/TyyHZvXkpzinbMTZmd/S5biU4zxkvDsn22ujC29t9FMSzq8tnn8f2MxQ2P8GVhFRG5jTAL05DXKyTtpEQQ==",
-      "license": "MIT",
-      "dependencies": {
-        "@types/cheerio": "*",
-        "@types/react": "^16"
-      }
-    },
-    "node_modules/@types/enzyme/node_modules/@types/react": {
-      "version": "16.14.62",
-      "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.62.tgz",
-      "integrity": "sha512-BWf7hqninZav6nerxXj+NeZT/mTpDeG6Lk2zREHAy63CrnXoOGPGtNqTFYFN/sqpSaREDP5otVV88axIXmKfGA==",
-      "license": "MIT",
-      "dependencies": {
-        "@types/prop-types": "*",
-        "@types/scheduler": "^0.16",
-        "csstype": "^3.0.2"
-      }
-    },
     "node_modules/@types/escodegen": {
       "version": "0.0.6",
       "resolved": "https://registry.npmjs.org/@types/escodegen/-/escodegen-0.0.6.tgz",
@@ -48626,7 +48608,6 @@
       "license": "Apache-2.0",
       "dependencies": {
         "@react-icons/all-files": "^4.1.0",
-        "@types/enzyme": "^3.10.18",
         "@types/react": "*",
         "lodash": "^4.17.21",
         "prop-types": "^15.8.1"
@@ -48686,7 +48667,6 @@
         "@types/d3-scale": "^2.1.1",
         "@types/d3-time": "^3.0.4",
         "@types/d3-time-format": "^4.0.3",
-        "@types/enzyme": "^3.10.18",
         "@types/fetch-mock": "^7.3.8",
         "@types/lodash": "^4.17.16",
         "@types/math-expression-evaluator": "^1.3.3",
diff --git a/superset/db_engine_specs/duckdb.py b/superset/db_engine_specs/duckdb.py
index c3b9db1b90..2cea2ec520 100644
--- a/superset/db_engine_specs/duckdb.py
+++ b/superset/db_engine_specs/duckdb.py
@@ -253,7 +253,7 @@ class DuckDBEngineSpec(DuckDBParametersMixin, BaseEngineSpec):
         user_agent = get_user_agent(database, source)
         user_agent = user_agent.replace(" ", "-").lower()
         user_agent = f"{user_agent}/{VERSION_STRING}{delim}{custom_user_agent}"
-        config.setdefault("custom_user_agent", user_agent)
+        # config.setdefault("custom_user_agent", user_agent)
 
         return extra
 
diff --git a/superset/sql/dialects/__init__.py b/superset/sql/dialects/__init__.py
index ab09de3c2a..3b43b15bec 100644
--- a/superset/sql/dialects/__init__.py
+++ b/superset/sql/dialects/__init__.py
@@ -15,6 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
+from .dremio import Dremio
 from .firebolt import Firebolt, FireboltOld
 
-__all__ = ["Firebolt", "FireboltOld"]
+__all__ = ["Dremio", "Firebolt", "FireboltOld"]