dbt_utils macros still using `dbt_utils.escape_single_quotes`
See original GitHub issueDescribe the bug
I’m getting a warning when running dbt that the escape_single_quotes macro is now provided in dbt Core. From my digging around, it seems that there are some dbt_utils macros such as pivot() that are still relying on the version that’s in dbt_utils instead of dbt Core.
Steps to reproduce
Running a dbt model that utilizes the pivot macro
Expected results
No warnings from using a dbt_utils macro
Actual results
Warning: the `escape_single_quotes` macro is now provided in dbt Core. It is no longer available in dbt_utils and backwards compatibility will be removed in a future version of the package. Use `escape_single_quotes` (no prefix) instead. The *** model triggered this warning.
Screenshots and log output

System information
The contents of your packages.yml file:
packages:
- package: dbt-labs/dbt_utils
version: 0.9.1
Which database are you using dbt with?
- postgres
- redshift
- bigquery
- snowflake
- other (specify: ____________)
The output of dbt --version:
Core:
- installed: 1.2.1
- latest: 1.2.1 - Up to date!
Plugins:
- snowflake: 1.2.0 - Up to date!```
### Additional context
From a quick search, it seems that the only spot that `dbt_utils.escape_single_quotes` is referenced is in `pivot.sql`
### Are you interested in contributing the fix?
Would definitely be interested in helping, I think I can put in a PR myself
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
The future of dbt utils · Discussion #487 - GitHub
I did a quick search this morning and found that we use the cross_db_utils in every one of our source packages, and leverage...
Read more >Upgrading to dbt utils v1.0 - dbt Developer Hub
To resolve this, you can define a custom name for a test. The deprecated unique_where and not_null_where tests have been removed, because where ......
Read more >Combing dbtutils "surrogate key" with "get filtered columns in ...
Combing dbtutils "surrogate key" with "get filtered columns in relation" produces new warning. Produces this Warning: the surrogate_key macro ...
Read more >dbt_utils - dbt - Package hub
This dbt package contains macros that can be (re)used across dbt projects. ... Note This readme reflects dbt utils 1.0, currently in release...
Read more >dispatch | dbt Developer Hub
By using the dispatch macro and project config, it is possible to "shim" existing packages to work on other adapters, by way of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Could we cut a
0.9.3branch and release a patch version with this in it? I made a branch off the0.9.2tag and added the commit here: https://github.com/jsnb-devoted/dbt-utils/tree/dev/0.9.3 Would love to get this in before the 1.0 release @joellabes@joellabes poke ☝🏻