Skip to content

Commit

Permalink
feat: make log output more human-friendly (#3496)
Browse files Browse the repository at this point in the history
  • Loading branch information
plaflamme authored Dec 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3b404fe commit 3af1f17
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sqlmesh/core/snapshot/evaluator.py
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@
concurrent_apply_to_snapshots,
concurrent_apply_to_values,
)
from sqlmesh.utils.date import TimeLike, now
from sqlmesh.utils.date import TimeLike, now, time_like_to_str
from sqlmesh.utils.errors import ConfigError, SQLMeshError

if sys.version_info >= (3, 12):
@@ -592,7 +592,12 @@ def apply(query_or_df: QueryOrDF, index: int = 0) -> None:
execution_time=execution_time,
)
else:
logger.info("Inserting batch (%s, %s) into %s'", start, end, table_name)
logger.info(
"Inserting batch (%s, %s) into %s'",
time_like_to_str(start),
time_like_to_str(end),
table_name,
)
evaluation_strategy.insert(
table_name=table_name,
query_or_df=query_or_df,

0 comments on commit 3af1f17

Please sign in to comment.