mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: validate DB-specific parameters (#15155)
* fix: validate DB-specific parameters * Fix lint * Update test * Fix lint/test * Fix lint * Update superset/databases/api.py
This commit is contained in:
@@ -29,7 +29,7 @@ from typing_extensions import TypedDict
|
||||
|
||||
from superset.databases.schemas import encrypted_field_properties, EncryptedField
|
||||
from superset.db_engine_specs.base import BaseEngineSpec
|
||||
from superset.errors import SupersetErrorType
|
||||
from superset.errors import SupersetError, SupersetErrorType
|
||||
from superset.exceptions import SupersetGenericDBErrorException
|
||||
from superset.sql_parse import Table
|
||||
from superset.utils import core as utils
|
||||
@@ -331,6 +331,12 @@ class BigQueryEngineSpec(BaseEngineSpec):
|
||||
message="Big Query encrypted_extra is not available.",
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def validate_parameters(
|
||||
cls, parameters: BigQueryParametersType # pylint: disable=unused-argument
|
||||
) -> List[SupersetError]:
|
||||
return []
|
||||
|
||||
@classmethod
|
||||
def parameters_json_schema(cls) -> Any:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user