diff --git a/.changes/unreleased/Fixes-20251008-060948.yaml b/.changes/unreleased/Fixes-20251008-060948.yaml new file mode 100644 index 00000000..09b0da93 --- /dev/null +++ b/.changes/unreleased/Fixes-20251008-060948.yaml @@ -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 diff --git a/crates/dbt-jinja-utils/src/functions/base.rs b/crates/dbt-jinja-utils/src/functions/base.rs index 9c57f07c..cec224a8 100644 --- a/crates/dbt-jinja-utils/src/functions/base.rs +++ b/crates/dbt-jinja-utils/src/functions/base.rs @@ -858,12 +858,7 @@ pub fn print_fn() -> impl Fn(&[Value], Kwargs) -> Result { )); } - // 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("")) } }