Skip to content

Commit

Permalink
feat(ingest): enable CLL for dbt by default (datahub-project#9466)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Dec 18, 2023
1 parent b4fe451 commit 9d386fb
Show file tree
Hide file tree
Showing 9 changed files with 1,630 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class DBTCommonConfig(
description="When enabled, schemas will be inferred from the dbt node definition.",
)
include_column_lineage: bool = Field(
default=False,
default=True,
description="When enabled, column-level lineage will be extracted from the dbt node definition. Requires `infer_dbt_schemas` to be enabled. "
"If you run into issues where the column name casing does not match up with properly, providing a datahub_api or using the rest sink will improve accuracy.",
)
Expand Down Expand Up @@ -696,7 +696,10 @@ def get_column_type(
@support_status(SupportStatus.CERTIFIED)
@capability(SourceCapability.DELETION_DETECTION, "Enabled via stateful ingestion")
@capability(SourceCapability.LINEAGE_COARSE, "Enabled by default")
@capability(SourceCapability.LINEAGE_FINE, "Enabled using `include_column_lineage`")
@capability(
SourceCapability.LINEAGE_FINE,
"Enabled by default, configure using `include_column_lineage`",
)
class DBTSourceBase(StatefulIngestionSourceBase):
def __init__(self, config: DBTCommonConfig, ctx: PipelineContext, platform: str):
super().__init__(config, ctx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ def __init__(
self.report = report
self.source_config = source_config

@lru_cache()
@lru_cache(maxsize=200)
def get_explore(self, model: str, explore: str) -> Optional[LookerExplore]:
looker_explore = LookerExplore.from_api(
model,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_available_permissions(self) -> Set[str]:

return permissions

@lru_cache(maxsize=2000)
@lru_cache(maxsize=1000)
def get_user(self, id_: str, user_fields: str) -> Optional[User]:
self.client_stats.user_calls += 1
try:
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 9d386fb

Please sign in to comment.