dbt-clickhouse icon indicating copy to clipboard operation
dbt-clickhouse copied to clipboard

Extra quotes in split_part macro

Open 3fonov opened this issue 6 months ago • 0 comments

Describe the bug

It seems to be extra quotation in split_part macro. If you run {{ dbt_utils.get_url_parameter("url","field_name") }} it results in following code:

      nullif(
    splitByChar(''&'', 
    splitByChar(''field_name='', url)[2]
)[1]
,'') as field_name,

Steps to reproduce

  1. run macro {{ dbt_utils.get_url_parameter("url","field_name") }}

Expected behaviour

I Expect it to be:

      nullif(
    splitByChar('&', 
    splitByChar('field_name=', url)[2]
)[1]
,'') as field_name,

3fonov avatar Aug 14 '24 15:08 3fonov