Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Aug 23, 2021
1 parent afd63bd commit 33cbd25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions superset/db_engine_specs/clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import logging
from datetime import datetime
from typing import Dict, Optional, Type, List, TYPE_CHECKING

Expand All @@ -28,6 +29,8 @@
# prevent circular imports
from superset.models.core import Database

logger = logging.getLogger(__name__)


class ClickHouseEngineSpec(BaseEngineSpec): # pylint: disable=abstract-method
"""Dialect for ClickHouse analytical DB."""
Expand Down Expand Up @@ -77,7 +80,6 @@ def convert_dttm(cls, target_type: str, dttm: datetime) -> Optional[str]:
return f"""toDateTime('{dttm.isoformat(sep=" ", timespec="seconds")}')"""
return None


@classmethod
@cache_manager.cache.memoize()
def get_function_names(cls, database: "Database") -> List[str]:
Expand Down Expand Up @@ -110,6 +112,5 @@ def get_function_names(cls, database: "Database") -> List[str]:
)
return []


# otherwise, return no function names to prevent errors
return []

0 comments on commit 33cbd25

Please sign in to comment.