dbt-clickhouse
dbt-clickhouse copied to clipboard
Extra quotes in split_part macro
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
- 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,