Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra quotes in split_part macro #337

Open
3fonov opened this issue Aug 14, 2024 · 0 comments
Open

Extra quotes in split_part macro #337

3fonov opened this issue Aug 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@3fonov
Copy link
Contributor

3fonov commented Aug 14, 2024

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 3fonov added the bug Something isn't working label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants