Skip to content

[REGRESSION] threads: -1 in profiles.yml causes panic #731

@dataders

Description

@dataders

Describe the bug

This is on main as of 2 PM EST on 2025-09-09.

So far as I've known, threads: -1 was a valid config that meant: use as many threads as you can/want.

Today I got this off a debug build. Removing threads: -1 resolved the issue, and results in the same behavior IRRC, just wanted to flag because:

  • it's a panic
  • -1 is an integer (from my experience as a math major at least)! Though perhaps this is a YAML parsed as a float? Idk
panic: panicked at fs/sa/crates/dbt-fusion-adapter/src/sql_engine.rs:111:17:
threads must be an integer if specified
Image

What version of dbt Fusion is this bug in? (find out by running dbt --version)

> dbtd --version
dbt-fusion 2.0.0-preview.10

> where dbtd
/Users/dataders/Developer/fs/target/debug/dbt

> dbtf parse
dbt-fusion 2.0.0-preview.10 (v2.0.0-preview.10-9-g015211d3a9 2025-09-09 13:34:44)
dbt-fusion 2.0.0-preview.10

To Reproduce

  1. Open this workspace
  2. Follow the instructions in the README

Or follow the original instructions below:

add threads: -1 to any profiles.yml

Expected behavior

It shouldn't panic!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas-reproHas a reproducible example

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions