Skip to content

default_test_connection doesn't accept config shown in docs #5584

@martinburch

Description

@martinburch

https://sqlmesh.readthedocs.io/en/stable/guides/connections/#default-test-connection

default_test_connection:
 type: duckdb
 database: test.db

My config.yaml:

default_test_connection:
 type: duckdb
 database: test.db
% sqlmesh plan
Error: Invalid project config:
  Invalid field 'default_test_connection.type_':
    Field required
  Invalid field 'default_test_connection.concurrent_tasks':
    Field required
  Invalid field 'default_test_connection.register_comments':
    Field required
  Invalid field 'default_test_connection.pre_ping':
    Field required
  Invalid field 'default_test_connection.type':
    Extra inputs are not permitted
  Invalid field 'default_test_connection.database':
    Extra inputs are not permitted

Verify your config.yaml and environment variables.

Do the docs need updating? It's not shown that concurrent_tasks, register_comments, or pre_ping are required, and database parameter is shown but apparently not permitted. It's also not clear how to specify the type.

I'm seeing this behaviour on SQLMesh version 0.221.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions