Complete the code to specify the path of the CSV seed file in the dbt project configuration.
seeds:
my_project:
[1]: data/my_seed.csvThe path key is used to specify the location of the CSV seed file in the dbt project configuration.
Complete the command to load seeds into the data warehouse using dbt.
dbt [1]The dbt seed command loads CSV seed files into the data warehouse as tables.
Fix the error in the seed configuration to enable header rows in the CSV file.
seeds:
my_project:
my_seed:
[1]: trueThe correct key to enable headers in dbt seed configuration is header.
Fill both blanks to create a dictionary comprehension that loads seed data only for CSV files larger than 1MB.
large_seeds = {name: path for name, path in seeds.items() if [1]([2]) > 1048576 and [2].endswith('.csv')}Use os.path.getsize to get file size and path to check the file extension.
Fill all three blanks to create a dictionary comprehension that maps seed names to their row counts, filtering seeds with more than 100 rows.
seed_row_counts = { [1]: sum(1 for _ in open([2])) - 1 for [3], _ in seeds.items() if sum(1 for _ in open(_) ) - 1 > 100 }The comprehension uses name as the key, path to open the file, and iterates over name and _ in seeds.items().