Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changes/unreleased/Fixes-20251008-060948.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Fixes
body: Make `print` macro consistent to dbt Core
time: 2025-10-08T06:09:48.779488+09:00
custom:
author: yu-iskw
issue: "869"
project: dbt-fusion
7 changes: 1 addition & 6 deletions crates/dbt-jinja-utils/src/functions/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -858,12 +858,7 @@ pub fn print_fn() -> impl Fn(&[Value], Kwargs) -> Result<Value, Error> {
));
}

// TODO: fusion print is different from dbt print due to this is printing Debug
// for example print('string')
// fusion: 'string' // things are always wrapped in single quotes
// dbt: string
// changed to log::info!("{}", args[0]); if we have to make them consistent
log::info!("{:?}", args[0]);
log::info!("{}", args[0]);
Ok(Value::from(""))
}
}
Expand Down