Closed
Description
Is this a regression in a recent version of dbt-core?
- I believe this is a regression in dbt-core functionality
- I have searched the existing issues, and I could not find an existing issue for this regression
Current Behavior
We have an empty seed file in one of our dbt projects (Sometimes we need to manually intervene and add lines to it) that has been running successfully for a while now but after upgrading to dbt 1.6.6 you get an unhandled exception when compiling:
12:21:14 Running with dbt=1.6.6
12:21:15 Registered adapter: bigquery=1.6.7
12:21:15 Unable to do partial parsing because of a version mismatch
12:21:16 Found 3 models, 2 seeds, 0 sources, 0 exposures, 0 metrics, 394 macros, 0 groups, 0 semantic models
12:21:16
12:21:25 Concurrency: 8 threads (target='integration-local')
12:21:25
12:21:25 2 of 2 START seed file dry_run.my_seed ............................................................................................................................................. [RUN]
12:21:25 1 of 2 START seed file dry_run.empty_seed .......................................................................................................................................... [RUN]
12:21:25 Unhandled error while executing
'NoneType' object has no attribute 'upper'
12:21:25 1 of 2 ERROR loading seed file dry_run.empty_seed .................................................................................................................................. [ERROR in 0.09s]
12:21:30 2 of 2 OK loaded seed file dry_run.my_seed ......................................................................................................................................... [INSERT 2 in 4.28s]
12:21:30
12:21:30 Finished running 2 seeds in 0 hours 0 minutes and 13.56 seconds (13.56s).
12:21:30
12:21:30 Completed with 1 error and 0 warnings:
12:21:30
12:21:30 'NoneType' object has no attribute 'upper'
12:21:30
12:21:30 Done. PASS=1 WARN=0 ERROR=1 SKIP=0 TOTAL=2
Expected/Previous Behavior
In dbt 1.5.x
it works fine:
12:24:09 Running with dbt=1.5.8
12:24:10 Registered adapter: bigquery=1.5.7
12:24:10 Unable to do partial parsing because of a version mismatch
12:24:10 Found 3 models, 0 tests, 0 snapshots, 0 analyses, 360 macros, 0 operations, 2 seed files, 0 sources, 0 exposures, 0 metrics, 0 groups
12:24:10
12:24:11 Concurrency: 8 threads (target='integration-local')
12:24:11
12:24:11 1 of 2 START seed file dry_run.empty_seed .......................................................................................................................................... [RUN]
12:24:11 2 of 2 START seed file dry_run.my_seed ............................................................................................................................................. [RUN]
12:24:15 2 of 2 OK loaded seed file dry_run.my_seed ......................................................................................................................................... [INSERT 2 in 3.76s]
12:24:16 1 of 2 OK loaded seed file dry_run.empty_seed ...................................................................................................................................... [INSERT 0 in 4.34s]
12:24:16
12:24:16 Finished running 2 seeds in 0 hours 0 minutes and 5.52 seconds (5.52s).
12:24:16
12:24:16 Completed successfully
12:24:16
12:24:16 Done. PASS=2 WARN=0 ERROR=0 SKIP=0 TOTAL=2
Steps To Reproduce
- In dbt 1.6.x (I am using Big Query) create a project and create a seed with just headings:
#my_seed.csv
a,b,c
Then when you run dbt build/seed
you will see the error.
Relevant log output
Already posted.
Environment
- OS: Mac OS
- Python: 3.8.16
- dbt (working version): 1.5.8
- dbt (regression version): 1.6.6
Which database adapter are you using with dbt?
bigquery
Additional Context
No response
Activity