Skip to content

Commit

Permalink
refactor: Update dremio_source.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-salvi-apptware committed Oct 11, 2024
1 parent 51c2443 commit 84227b6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from datetime import datetime
from typing import Any, Dict, Iterable, List, Optional

import datahub.sql_parsing.sqlglot_utils
from datahub.emitter.mce_builder import (
make_data_platform_urn,
make_dataset_urn_with_platform_instance,
Expand Down Expand Up @@ -606,3 +607,10 @@ def close(self) -> None:
Close any resources held by the source.
"""
pass


def _sql_dialect(platform: str) -> str:
return "trino"


datahub.sql_parsing.sqlglot_utils._get_dialect_str = _sql_dialect

0 comments on commit 84227b6

Please sign in to comment.