From 544d500dd9e32a4479b1d926dc6d8d6aad7785ae Mon Sep 17 00:00:00 2001 From: Yu Ishikawa Date: Wed, 8 Oct 2025 07:47:24 +0900 Subject: [PATCH] Make `public` macro consistent to dbt Core Signed-off-by: Yu Ishikawa --- .changes/unreleased/Fixes-20251008-060948.yaml | 7 +++++++ crates/dbt-jinja-utils/src/functions/base.rs | 7 +------ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 .changes/unreleased/Fixes-20251008-060948.yaml 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("")) } }