mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat(docs): auto-generate database documentation from lib.py (#36805)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,7 +30,7 @@ from sqlalchemy.engine.reflection import Inspector
|
||||
|
||||
from superset import db
|
||||
from superset.constants import QUERY_EARLY_CANCEL_KEY, TimeGrain
|
||||
from superset.db_engine_specs.base import BaseEngineSpec
|
||||
from superset.db_engine_specs.base import BaseEngineSpec, DatabaseCategory
|
||||
from superset.models.sql_lab import Query
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@@ -47,6 +47,23 @@ class ImpalaEngineSpec(BaseEngineSpec):
|
||||
engine = "impala"
|
||||
engine_name = "Apache Impala"
|
||||
|
||||
metadata = {
|
||||
"description": (
|
||||
"Apache Impala is an open-source massively parallel "
|
||||
"processing SQL query engine."
|
||||
),
|
||||
"logo": "apache-impala.png",
|
||||
"homepage_url": "https://impala.apache.org/",
|
||||
"categories": [
|
||||
DatabaseCategory.APACHE_PROJECTS,
|
||||
DatabaseCategory.QUERY_ENGINES,
|
||||
DatabaseCategory.OPEN_SOURCE,
|
||||
],
|
||||
"pypi_packages": ["impyla"],
|
||||
"connection_string": "impala://{hostname}:{port}/{database}",
|
||||
"default_port": 21050,
|
||||
}
|
||||
|
||||
_time_grain_expressions = {
|
||||
None: "{col}",
|
||||
TimeGrain.MINUTE: "TRUNC({col}, 'MI')",
|
||||
|
||||
Reference in New Issue
Block a user