Skip to content

Commit

Permalink
making default a macro
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-rsureshbabu committed Apr 29, 2024
1 parent 8aac228 commit 25e2da0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/snowflake/snowpark/lineage.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

_MIN_TRACE_DEPTH = 1
_MAX_TRACE_DEPTH = 5
_DEFAULT_TRACE_DEPTH = 2


class LineageDirection(Enum):
Expand Down Expand Up @@ -429,7 +430,7 @@ def trace(
*,
object_version: Optional[str] = None,
direction: Union[str, LineageDirection] = LineageDirection.BOTH,
depth: int = 2,
depth: int = _DEFAULT_TRACE_DEPTH,
) -> "snowflake.snowpark.dataframe.DataFrame":
"""
Traces the lineage of an object within Snowflake and returns it as a DataFrame.
Expand Down

0 comments on commit 25e2da0

Please sign in to comment.