Complete the code to import a dbt package in your project.
packages:
- package: [1]The dbt_utils package is a common dbt package that provides useful macros to speed up development.
Complete the code to use a macro from a dbt package in a model.
select * from [1].get_relations_by_prefix('my_schema', 'my_prefix')
The get_relations_by_prefix macro is part of the dbt_utils package, which helps with database tasks.
Fix the error in the dbt model code by completing the blank.
select [1]('column_name') as column_length from my_table
In SQL, the function to get the length of a string is length, not len.
Fill both blanks to create a dictionary comprehension that filters words longer than 3 characters.
{word: [1] for word in words if len(word) [2] 3}< instead of greater than >.The dictionary comprehension uses len(word) as the value and filters words with length greater than 3 using >.
Fill all three blanks to create a dictionary comprehension that maps uppercase keys to values greater than zero.
result = [1]: [2] for k, v in data.items() if v [3] 0}
< or ==.The keys are converted to uppercase with k.upper(), values are v, and the filter keeps values greater than zero with >.