Skip to content

Instantly share code, notes, and snippets.

@viktor-ferenczi
Created May 1, 2025 00:50
Show Gist options
  • Save viktor-ferenczi/2be4c43bba111001c41d3a90058a7c94 to your computer and use it in GitHub Desktop.
Save viktor-ferenczi/2be4c43bba111001c41d3a90058a7c94 to your computer and use it in GitHub Desktop.

Cluster 1 (24 tests)

  • new::ref_actions::on_update::cascade::multiple_cascading_paths::it_should_work
  • new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent
  • new::ref_actions::on_update::cascade::one2many_opt::update_parent
  • new::ref_actions::on_update::cascade::one2many_req::update_parent
  • new::ref_actions::on_update::cascade::one2one_opt::update_parent_cascade
  • new::ref_actions::on_update::cascade::one2one_opt::update_parent_compound_cascade
  • new::ref_actions::on_update::cascade::one2one_req::update_parent_cascade
  • new::ref_actions::on_update::cascade::one2one_req::update_parent_compound_cascade
  • new::ref_actions::on_update::restrict::one2many_opt::update_parent
  • new::ref_actions::on_update::restrict::one2many_opt::update_parent_failure
  • new::ref_actions::on_update::restrict::one2many_req::update_parent
  • new::ref_actions::on_update::restrict::one2many_req::update_parent_failure
  • new::ref_actions::on_update::restrict::one2one_opt::update_parent_failure
  • new::ref_actions::on_update::restrict::one2one_req::update_parent_failure
  • new::ref_actions::on_update::set_null::one2many_opt::update_compound_parent
  • new::ref_actions::on_update::set_null::one2many_opt::update_parent
  • new::ref_actions::on_update::set_null::one2many_opt::update_parent_compound_recurse
  • new::ref_actions::on_update::set_null::one2many_opt::update_parent_no_recursion
  • new::ref_actions::on_update::set_null::one2many_opt::update_parent_recurse_restrict_failure
  • new::ref_actions::on_update::set_null::one2many_opt::update_parent_recurse_set_null
  • new::ref_actions::on_update::set_null::one2one_opt::update_parent
  • new::ref_actions::on_update::set_null::one2one_opt::update_parent_no_recursion
  • new::ref_actions::on_update::set_null::one2one_opt::update_parent_recurse_restrict_failure
  • new::ref_actions::on_update::set_null::one2one_opt::update_parent_recurse_set_null
1: new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent (14)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
at PrismaBetterSQLite3Adapter.performIO (file:<PATH>:<DEC>:<DEC>)
at PrismaBetterSQLite3Adapter.queryRaw (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at file:<PATH>:<DEC>:<DEC>
at Object.runInChildSpan (file:<PATH>:<DEC>:<DEC>)
at #withQueryEvent (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at Array.map (<anonymous>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/cascade_onU_1toM_opt_update_compound_parent.db"
    relationMode = "prisma"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
  id Int @id
  name     String?
  uniq_1   String?
  uniq_2   String?
  children Child[]

  @@unique([uniq_1, uniq_2])
}

model Child {
  id Int @id
  name          String?
  parent_uniq_1 String?
  parent_uniq_2 String?
  parent        Parent? @relation(fields: [parent_uniq_1, parent_uniq_2], references: [uniq_1, uniq_2], onUpdate: Cascade)
}
[2025-04-30T18:27:59Z INFO  tracing::span] diff;
[2025-04-30T18:27:59Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:27:59Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/cascade_onU_1toM_opt_update_compound_parent.db\"\n    relationMode = \"prisma\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n  id Int @id\n  name     String?\n  uniq_1   String?\n  uniq_2   String?\n  children Child[]\n\n  @@unique([uniq_1, uniq_2])\n}\n\nmodel Child {\n  id Int @id\n  name          String?\n  parent_uniq_1 String?\n  parent_uniq_2 String?\n  parent        Parent? @relation(fields: [parent_uniq_1, parent_uniq_2], references: [uniq_1, uniq_2], onUpdate: Cascade)\n}"), "url": String("file:/mnt/ram/db/cascade_onU_1toM_opt_update_compound_parent.db")}
Test failed due to an error:
=====
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
    at PrismaBetterSQLite3Adapter.performIO (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:480:51)
    at PrismaBetterSQLite3Adapter.queryRaw (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:440:63)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:618:51
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:30
    at Object.runInChildSpan (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:12:12)
    at #withQueryEvent (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:687:32)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:617:36)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:587:52
    at Array.map (<anonymous>)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:586:30)
=====

thread 'new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent
             at ./tests/new/ref_actions/on_update/cascade.rs:433:5
  28: query_engine_tests::new::ref_actions::on_update::cascade::one2many_opt::update_compound_parent::{{closure}}
             at ./tests/new/ref_actions/on_update/cascade.rs:433:54
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: new::ref_actions::on_update::set_null::one2one_opt::update_parent (10)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
at PrismaBetterSQLite3Adapter.performIO (file:<PATH>:<DEC>:<DEC>)
at PrismaBetterSQLite3Adapter.queryRaw (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at file:<PATH>:<DEC>:<DEC>
at Object.runInChildSpan (file:<PATH>:<DEC>:<DEC>)
at #withQueryEvent (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at Array.map (<anonymous>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/setnull_onU_1to1_opt_update_parent.db"
    relationMode = "prisma"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
    id Int @id
    uniq  String? @unique
    child Child?
}

model Child {
    id Int @id
    parent_uniq String? @unique
    parent      Parent? @relation(fields: [parent_uniq], references: [uniq], onUpdate: SetNull)
}
[2025-04-30T18:28:12Z INFO  tracing::span] diff;
[2025-04-30T18:28:12Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:12Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/setnull_onU_1to1_opt_update_parent.db\"\n    relationMode = \"prisma\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n    id Int @id\n    uniq  String? @unique\n    child Child?\n}\n\nmodel Child {\n    id Int @id\n    parent_uniq String? @unique\n    parent      Parent? @relation(fields: [parent_uniq], references: [uniq], onUpdate: SetNull)\n}"), "url": String("file:/mnt/ram/db/setnull_onU_1to1_opt_update_parent.db")}
Test failed due to an error:
=====
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
    at PrismaBetterSQLite3Adapter.performIO (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:480:51)
    at PrismaBetterSQLite3Adapter.queryRaw (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:440:63)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:618:51
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:30
    at Object.runInChildSpan (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:12:12)
    at #withQueryEvent (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:687:32)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:617:36)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:626:34)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:587:52
    at Array.map (<anonymous>)
=====

thread 'new::ref_actions::on_update::set_null::one2one_opt::update_parent' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::new::ref_actions::on_update::set_null::one2one_opt::update_parent
             at ./tests/new/ref_actions/on_update/set_null.rs:28:5
  28: query_engine_tests::new::ref_actions::on_update::set_null::one2one_opt::update_parent::{{closure}}
             at ./tests/new/ref_actions/on_update/set_null.rs:28:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 2 (23 tests)

  • new::native_upsert::native_upsert::should_not_if_has_nested_select
  • new::native_upsert::native_upsert::should_not_use_native_upsert_on_two_uniques
  • new::ref_actions::on_update::restrict::one2one_opt::upsert_parent_failure
  • new::ref_actions::on_update::restrict::one2one_req::upsert_parent_failure
  • queries::filters::self_relation::self_relation_filters::many2many_empty_every
  • queries::filters::self_relation::self_relation_filters::many2many_empty_none
  • queries::filters::self_relation::self_relation_filters::many2many_empty_some
  • queries::filters::self_relation::self_relation_filters::many2many_none
  • queries::filters::self_relation::self_relation_filters::many2many_some
  • queries::filters::self_relation::self_relation_filters::many2one
  • queries::filters::self_relation::self_relation_filters::many2one_null_filter
  • queries::filters::self_relation::self_relation_filters::one2one_null
  • queries::filters::self_relation::self_relation_filters::one2one_null_fail
  • writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_1_single_field_rel
  • writes::ids::relation_pks::single_pk_rel_field::single_pk_rel_field::id_also_1_m_single_field_rel
  • writes::regressions::graph_reorder_regression::graph_reorder::test
  • writes::top_level_mutations::non_embedded_upsert::non_embedded_upsert::nested_connect_in_create
  • writes::top_level_mutations::upsert::upsert::should_update_if_uniq_already_exists
  • writes::top_level_mutations::upsert::upsert::upsert_called_twice_does_nothing
  • writes::uniques_and_node_selectors::multi_field_uniq_mutation::multi_field_uniq_mut::nested_set_multi_field_uniq
  • writes::uniques_and_node_selectors::relation_uniques::compound_uniq_rel_field::compound_uniq_rel_field::compound_uniq_with_1_1_multi_rel
  • writes::uniques_and_node_selectors::relation_uniques::compound_uniq_rel_field::compound_uniq_rel_field::compound_uniq_with_1_1_single_rel
  • writes::uniques_and_node_selectors::relation_uniques::compound_uniq_rel_field::compound_uniq_rel_field::compound_uniq_with_1_m_multi_rel
1: queries::filters::self_relation::self_relation_filters::many2many_empty_none (23)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
not implemented: Discriminant(<DEC>)
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/self_relation_filters_many2many_empty_none.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Human {
    id String @id
    name       String
    wife_id    String? @unique
    mother_id  String?
    father_id  String?
    singer_id  String?
    title_id   String? @unique

    husband       Human? @relation(name: "Marriage")
    wife          Human? @relation(name: "Marriage",  fields: [wife_id],   references: [id], onDelete: NoAction, onUpdate: NoAction)
    mother        Human? @relation(name: "Cuckoo",    fields: [mother_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
    father        Human? @relation(name: "Offspring", fields: [father_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
    singer        Human? @relation(name: "Team",      fields: [singer_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
    title         Song?  @relation(                   fields: [title_id],  references: [id], onDelete: NoAction, onUpdate: NoAction)

    daughters     Human[] @relation(name: "Offspring")
    stepdaughters Human[] @relation(name: "Cuckoo")
    bandmembers   Human[] @relation(name: "Team")

    fans Human[] @relation(name: "Admirers")
    rockstars Human[] @relation(name: "Admirers")
}

model Song{
    id String @id
    title   String
    creator Human?
}

[2025-04-30T18:28:54Z INFO  tracing::span] diff;
[2025-04-30T18:28:54Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:54Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/self_relation_filters_many2many_empty_none.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Human {\n    id String @id\n    name       String\n    wife_id    String? @unique\n    mother_id  String?\n    father_id  String?\n    singer_id  String?\n    title_id   String? @unique\n\n    husband       Human? @relation(name: \"Marriage\")\n    wife          Human? @relation(name: \"Marriage\",  fields: [wife_id],   references: [id], onDelete: NoAction, onUpdate: NoAction)\n    mother        Human? @relation(name: \"Cuckoo\",    fields: [mother_id], references: [id], onDelete: NoAction, onUpdate: NoAction)\n    father        Human? @relation(name: \"Offspring\", fields: [father_id], references: [id], onDelete: NoAction, onUpdate: NoAction)\n    singer        Human? @relation(name: \"Team\",      fields: [singer_id], references: [id], onDelete: NoAction, onUpdate: NoAction)\n    title         Song?  @relation(                   fields: [title_id],  references: [id], onDelete: NoAction, onUpdate: NoAction)\n\n    daughters     Human[] @relation(name: \"Offspring\")\n    stepdaughters Human[] @relation(name: \"Cuckoo\")\n    bandmembers   Human[] @relation(name: \"Team\")\n\n    fans Human[] @relation(name: \"Admirers\")\n    rockstars Human[] @relation(name: \"Admirers\")\n}\n\nmodel Song{\n    id String @id\n    title   String\n    creator Human?\n}\n"), "url": String("file:/mnt/ram/db/self_relation_filters_many2many_empty_none.db")}
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/translate.rs:88:18:
not implemented: Discriminant(1)
    at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
    at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
    at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
    at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
    at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
    at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====

thread 'queries::filters::self_relation::self_relation_filters::many2many_empty_none' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::filters::self_relation::self_relation_filters::many2many_empty_none
             at ./tests/queries/filters/self_relation.rs:295:5
  28: query_engine_tests::queries::filters::self_relation::self_relation_filters::many2many_empty_none::{{closure}}
             at ./tests/queries/filters/self_relation.rs:295:58
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 3 (12 tests)

  • queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel
  • queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc
  • queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one_field_asc_m2one2m_count_desc
  • queries::order_and_pagination::order_by_dependent::order_by_dependent::circular_diff_related_record_asc
  • queries::order_and_pagination::order_by_dependent::order_by_dependent::circular_diff_related_record_desc
  • queries::order_and_pagination::order_by_dependent::order_by_dependent::hop_1_related_record_asc_nulls
  • queries::order_and_pagination::order_by_dependent::order_by_dependent::hop_2_related_record_asc_null
  • queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_asc
  • queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc
  • queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::hop_1_related_record_asc_nulls
  • queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::hop_2_related_record_asc_null
  • queries::regressions::pagination_regression::pagination_regr::prisma_3505_case_1
1: queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
assertion `left == right` failed: Query result: {"data":{"groupByTestModel":null}} is not part of the expected results: ["{\"data\":{\"groupByTestModel\":[{\"string\":\"group1\"},{\"string\":\"group2\"}]}}", "{\"data\":{\"groupByTestModel\":[{\"string\":\"group2\"},{\"string\":\"group1\"}]}}"] for connector SQLite (better-sqlite3)
left: false
right: true
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/aggr_group_by_having_having_without_aggr_sel.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    int     Int?
    bInt    BigInt?
    float   Float?
    string  String?
}
[2025-04-30T18:28:15Z INFO  tracing::span] diff;
[2025-04-30T18:28:15Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:15Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/aggr_group_by_having_having_without_aggr_sel.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    int     Int?\n    bInt    BigInt?\n    float   Float?\n    string  String?\n}"), "url": String("file:/mnt/ram/db/aggr_group_by_having_having_without_aggr_sel.db")}

thread 'queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/aggregation/group_by_having.rs:362:9:
assertion `left == right` failed: Query result: {"data":{"groupByTestModel":null}} is not part of the expected results: ["{\"data\":{\"groupByTestModel\":[{\"string\":\"group1\"},{\"string\":\"group2\"}]}}", "{\"data\":{\"groupByTestModel\":[{\"string\":\"group2\"},{\"string\":\"group1\"}]}}"] for connector SQLite (better-sqlite3)
  left: false
 right: true
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
   4: query_engine_tests::queries::aggregation::group_by_having::aggr_group_by_having::run_having_without_aggr_sel::{{closure}}
             at ./tests/queries/aggregation/group_by_having.rs:362:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel
             at ./tests/queries/aggregation/group_by_having.rs:353:5
  39: query_engine_tests::queries::aggregation::group_by_having::aggr_group_by_having::having_without_aggr_sel::{{closure}}
             at ./tests/queries/aggregation/group_by_having.rs:353:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
assertion `left == right` failed: Query result: {"data":{"findManyModelA":[{"id":<DEC>,"b":null},{"id":<DEC>,"b":{"c":{"a":{"id":<DEC>}}}},{"id":<DEC>,"b":null},{"id":<DEC>,"b":null}]}} is not part of the expected results: ["{\"data\":{\"findManyModelA\":[{\"id\":<DEC>,\"b\":{\"c\":{\"a\":{\"id\":<DEC>}}}},{\"id\":<DEC>,\"b\":{\"c\":{\"a\":{\"id\":<DEC>}}}},{\"id\":<DEC>,\"b\":null},{\"id\":<DEC>,\"b\":null}]}}", "{\"data\":{\"findManyModelA\":[{\"id\":<DEC>,\"b\":{\"c\":{\"a\":{\"id\":<DEC>}}}},{\"id\":<DEC>,\"b\":{\"c\":{\"a\":{\"id\":<DEC>}}}},{\"id\":<DEC>,\"b\":null},{\"id\":<DEC>,\"b\":null}]}}"] for connector SQLite (better-sqlite3)
left: false
right: true
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/order_by_dependent_pag_circular_diff_related_record_desc.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model ModelA {
  id Int @id
  b_id Int? @unique
  b    ModelB? @relation(fields: [b_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
  c    ModelC?
}

model ModelB {
  id Int @id
  a  ModelA?

  c_id Int? @unique
  c    ModelC? @relation(fields: [c_id], references: [id])
}

model ModelC {
  id Int @id
  b    ModelB?
  a_id Int? @unique
  a    ModelA? @relation(fields: [a_id], references: [id])
}
[2025-04-30T18:28:54Z INFO  tracing::span] diff;
[2025-04-30T18:28:54Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:54Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/order_by_dependent_pag_circular_diff_related_record_desc.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel ModelA {\n  id Int @id\n  b_id Int? @unique\n  b    ModelB? @relation(fields: [b_id], references: [id], onDelete: NoAction, onUpdate: NoAction)\n  c    ModelC?\n}\n\nmodel ModelB {\n  id Int @id\n  a  ModelA?\n\n  c_id Int? @unique\n  c    ModelC? @relation(fields: [c_id], references: [id])\n}\n\nmodel ModelC {\n  id Int @id\n  b    ModelB?\n  a_id Int? @unique\n  a    ModelA? @relation(fields: [a_id], references: [id])\n}"), "url": String("file:/mnt/ram/db/order_by_dependent_pag_circular_diff_related_record_desc.db")}

thread 'queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/order_by_dependent_pagination.rs:278:9:
assertion `left == right` failed: Query result: {"data":{"findManyModelA":[{"id":2,"b":null},{"id":1,"b":{"c":{"a":{"id":3}}}},{"id":3,"b":null},{"id":4,"b":null}]}} is not part of the expected results: ["{\"data\":{\"findManyModelA\":[{\"id\":2,\"b\":{\"c\":{\"a\":{\"id\":4}}}},{\"id\":1,\"b\":{\"c\":{\"a\":{\"id\":3}}}},{\"id\":3,\"b\":null},{\"id\":4,\"b\":null}]}}", "{\"data\":{\"findManyModelA\":[{\"id\":2,\"b\":{\"c\":{\"a\":{\"id\":4}}}},{\"id\":1,\"b\":{\"c\":{\"a\":{\"id\":3}}}},{\"id\":4,\"b\":null},{\"id\":3,\"b\":null}]}}"] for connector SQLite (better-sqlite3)
  left: false
 right: true
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
   4: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::run_circular_diff_related_record_desc::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:278:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc
             at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:272:5
  39: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_diff_related_record_desc::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:272:42
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
assertion `left == right` failed: Query result: {"data":{"findManyPost":[{"id":<DEC>,"user":null},{"id":<DEC>,"user":null},{"id":<DEC>,"user":{"categories":[{"name":"Startup"}]}}]}} is not part of the expected results: ["{\"data\":{\"findManyPost\":[{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Startup\"}]}}]}}", "{\"data\":{\"findManyPost\":[{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":<DEC>,\"user\":{\"categories\":[{\"name\":\"Startup\"}]}}]}}"] for connector SQLite (better-sqlite3)
left: false
right: true
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/order_by_aggr_m2one2m_count_desc.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model User {
  id Int @id
  name  String
  posts Post[]
  categories Category[] 
}

model Post {
  id Int @id
  title  String
  user   User   @relation(fields: [userId], references: [id])
  userId Int
  categories Category[] 
}

model Category {
  id Int @id
  name   String
  posts Post[] 
  users User[] 
}
[2025-04-30T18:29:00Z INFO  tracing::span] diff;
[2025-04-30T18:29:00Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:29:00Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/order_by_aggr_m2one2m_count_desc.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel User {\n  id Int @id\n  name  String\n  posts Post[]\n  categories Category[] \n}\n\nmodel Post {\n  id Int @id\n  title  String\n  user   User   @relation(fields: [userId], references: [id])\n  userId Int\n  categories Category[] \n}\n\nmodel Category {\n  id Int @id\n  name   String\n  posts Post[] \n  users User[] \n}"), "url": String("file:/mnt/ram/db/order_by_aggr_m2one2m_count_desc.db")}

thread 'queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/order_by_aggregation.rs:218:9:
assertion `left == right` failed: Query result: {"data":{"findManyPost":[{"id":2,"user":null},{"id":3,"user":null},{"id":1,"user":{"categories":[{"name":"Startup"}]}}]}} is not part of the expected results: ["{\"data\":{\"findManyPost\":[{\"id\":2,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":3,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":1,\"user\":{\"categories\":[{\"name\":\"Startup\"}]}}]}}", "{\"data\":{\"findManyPost\":[{\"id\":3,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":2,\"user\":{\"categories\":[{\"name\":\"Computer Science\"},{\"name\":\"Music\"}]}},{\"id\":1,\"user\":{\"categories\":[{\"name\":\"Startup\"}]}}]}}"] for connector SQLite (better-sqlite3)
  left: false
 right: true
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
   4: query_engine_tests::queries::order_and_pagination::order_by_aggregation::order_by_aggr::run_m2one2m_count_desc::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_aggregation.rs:218:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc
             at ./tests/queries/order_and_pagination/order_by_aggregation.rs:214:5
  39: query_engine_tests::queries::order_and_pagination::order_by_aggregation::order_by_aggr::m2one2m_count_desc::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_aggregation.rs:214:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 4 (12 tests)

  • new::cursor::bigint_cursor::bigint_id_must_work
  • new::regressions::prisma_14696::prisma_14696::create_does_not_panic
  • queries::aggregation::min::aggregation_min::min_some_records
  • queries::aggregation::min::aggregation_min::min_with_all_sorts_of_query_args
  • queries::aggregation::sum::aggregation_sum::sum_some_records
  • queries::aggregation::sum::aggregation_sum::sum_with_all_sorts_of_query_args
  • queries::batching::select_one_singular::singular_batch::batch_bigint_id
  • queries::data_types::bigint::bigint::read_many
  • queries::data_types::bigint::bigint::read_one
  • queries::data_types::through_relation::scalar_relations::common_types
  • queries::simple::m2m::m2m::m2m_sharing_same_row
  • writes::data_types::bigint::bigint::using_bigint_field
1: queries::aggregation::min::aggregation_min::min_with_all_sorts_of_query_args (12)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/aggregation_min_min_with_all_sorts_of_query_args.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    int     Int
    bInt    BigInt
    float   Float
    string  String
}
[2025-04-30T18:28:28Z INFO  tracing::span] diff;
[2025-04-30T18:28:28Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:28Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/aggregation_min_min_with_all_sorts_of_query_args.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    int     Int\n    bInt    BigInt\n    float   Float\n    string  String\n}"), "url": String("file:/mnt/ram/db/aggregation_min_min_with_all_sorts_of_query_args.db")}
Test failed due to an error:
=====
External process error: Server error: TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:432:21)
    at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====

thread 'queries::aggregation::min::aggregation_min::min_with_all_sorts_of_query_args' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::aggregation::min::aggregation_min::min_with_all_sorts_of_query_args
             at ./tests/queries/aggregation/min.rs:33:5
  28: query_engine_tests::queries::aggregation::min::aggregation_min::min_with_all_sorts_of_query_args::{{closure}}
             at ./tests/queries/aggregation/min.rs:33:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 5 (12 tests)

  • queries::distinct::distinct::empty_database
  • queries::distinct::distinct::nested_distinct
  • queries::distinct::distinct::nested_distinct_order_by_field
  • queries::distinct::distinct::nested_distinct_reversed
  • queries::distinct::distinct::shorthand_works
  • queries::distinct::distinct::with_duplicates
  • queries::distinct::distinct::with_skip_basic
  • queries::distinct::distinct::with_skip_orderby
  • writes::top_level_mutations::create_many::create_many::basic_create_many_autoincrement
  • writes::top_level_mutations::create_many_and_return::create_many_and_return::basic_create_many_autoincrement
  • writes::top_level_mutations::create_many_and_return::create_many_and_return::create_many_by_shape
  • writes::top_level_mutations::create_many_and_return::create_many_and_return::create_many_by_shape_combinations
1: queries::distinct::distinct::nested_distinct (12)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: invalid type: map, expected a string
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/distinct_nested_distinct.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model User {
    id Int @id
    first_name String
    last_name  String
    email      String    @unique
    birthday   DateTime?
    posts Post[]
}

model Post {
    id Int @id
    title     String
    content   String @default("Wip")
    author_id Int
    author    User   @relation(fields: [author_id], references: [id])
}
[2025-04-30T18:28:45Z INFO  tracing::span] diff;
[2025-04-30T18:28:45Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:45Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/distinct_nested_distinct.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel User {\n    id Int @id\n    first_name String\n    last_name  String\n    email      String    @unique\n    birthday   DateTime?\n    posts Post[]\n}\n\nmodel Post {\n    id Int @id\n    title     String\n    content   String @default(\"Wip\")\n    author_id Int\n    author    User   @relation(fields: [author_id], references: [id])\n}"), "url": String("file:/mnt/ram/db/distinct_nested_distinct.db")}
Test failed due to an error:
=====
External process error: invalid type: map, expected a string
=====

thread 'queries::distinct::distinct::nested_distinct' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::distinct::distinct::nested_distinct
             at ./tests/queries/distinct.rs:176:5
  28: query_engine_tests::queries::distinct::distinct::nested_distinct::{{closure}}
             at ./tests/queries/distinct.rs:176:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 6 (11 tests)

  • new::ref_actions::on_delete::restrict::one2many_opt::delete_parent
  • new::ref_actions::on_delete::restrict::one2many_req::delete_parent
  • new::ref_actions::on_delete::restrict::one2one_opt::delete_parent
  • new::ref_actions::on_update::cascade::one2one_opt::update_parent_diff_id_name
  • new::ref_actions::on_update::restrict::one2many_opt::update_many_parent_failure
  • new::ref_actions::on_update::restrict::one2many_req::update_many_parent_failure
  • new::ref_actions::on_update::restrict::one2one_opt::update_many_parent_failure
  • new::ref_actions::on_update::restrict::one2one_req::update_many_parent_failure
  • new::ref_actions::on_update::set_null::one2many_opt::update_many_parent
  • new::ref_actions::on_update::set_null::one2one_opt::update_many_parent
  • new::ref_actions::on_update::set_null::one2one_opt::update_parent_diff_id_name
1: new::ref_actions::on_update::cascade::one2one_opt::update_parent_diff_id_name (6)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
at BetterSQLite3Transaction.performIO (file:<PATH>:<DEC>:<DEC>)
at BetterSQLite3Transaction.queryRaw (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at file:<PATH>:<DEC>:<DEC>
at Object.runInChildSpan (file:<PATH>:<DEC>:<DEC>)
at #withQueryEvent (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at Array.map (<anonymous>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/cascade_onU_1to1_opt_update_parent_diff_id_name.db"
    relationMode = "prisma"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
  id Int @id
  uniq    Int? @unique
  child   Child?
}

model Child {
  childId Int @id
  childUniq       Int? @unique
  parent           Parent? @relation(fields: [childUniq], references: [uniq], onUpdate: Cascade)
}
[2025-04-30T18:28:01Z INFO  tracing::span] diff;
[2025-04-30T18:28:01Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:01Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/cascade_onU_1to1_opt_update_parent_diff_id_name.db\"\n    relationMode = \"prisma\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n  id Int @id\n  uniq    Int? @unique\n  child   Child?\n}\n\nmodel Child {\n  childId Int @id\n  childUniq       Int? @unique\n  parent           Parent? @relation(fields: [childUniq], references: [uniq], onUpdate: Cascade)\n}"), "url": String("file:/mnt/ram/db/cascade_onU_1to1_opt_update_parent_diff_id_name.db")}
Test failed due to an error:
=====
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
    at BetterSQLite3Transaction.performIO (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:480:51)
    at BetterSQLite3Transaction.queryRaw (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:440:63)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:618:51
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:30
    at Object.runInChildSpan (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:12:12)
    at #withQueryEvent (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:687:32)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:617:36)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:626:34)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:587:52
    at Array.map (<anonymous>)
=====

thread 'new::ref_actions::on_update::cascade::one2one_opt::update_parent_diff_id_name' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::new::ref_actions::on_update::cascade::one2one_opt::update_parent_diff_id_name
             at ./tests/new/ref_actions/on_update/cascade.rs:294:5
  28: query_engine_tests::new::ref_actions::on_update::cascade::one2one_opt::update_parent_diff_id_name::{{closure}}
             at ./tests/new/ref_actions/on_update/cascade.rs:294:44
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: new::ref_actions::on_delete::restrict::one2many_opt::delete_parent (5)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
at BetterSQLite3Transaction.performIO (file:<PATH>:<DEC>:<DEC>)
at BetterSQLite3Transaction.queryRaw (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at file:<PATH>:<DEC>:<DEC>
at Object.runInChildSpan (file:<PATH>:<DEC>:<DEC>)
at #withQueryEvent (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at Array.map (<anonymous>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/restrict_onD_1toM_opt_delete_parent.db"
    relationMode = "prisma"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
    id Int @id
    children Child[]
}

model Child {
    id Int @id
    parent_id Int?
    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: Restrict)
}
[2025-04-30T18:28:02Z INFO  tracing::span] diff;
[2025-04-30T18:28:02Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:02Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/restrict_onD_1toM_opt_delete_parent.db\"\n    relationMode = \"prisma\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n    id Int @id\n    children Child[]\n}\n\nmodel Child {\n    id Int @id\n    parent_id Int?\n    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: Restrict)\n}"), "url": String("file:/mnt/ram/db/restrict_onD_1toM_opt_delete_parent.db")}
Test failed due to an error:
=====
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
    at BetterSQLite3Transaction.performIO (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:480:51)
    at BetterSQLite3Transaction.queryRaw (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:440:63)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:618:51
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:30
    at Object.runInChildSpan (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:12:12)
    at #withQueryEvent (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:687:32)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:617:36)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:587:52
    at Array.map (<anonymous>)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:586:30)
=====

thread 'new::ref_actions::on_delete::restrict::one2many_opt::delete_parent' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::new::ref_actions::on_delete::restrict::one2many_opt::delete_parent
             at ./tests/new/ref_actions/on_delete/restrict.rs:265:5
  28: query_engine_tests::new::ref_actions::on_delete::restrict::one2many_opt::delete_parent::{{closure}}
             at ./tests/new/ref_actions/on_delete/restrict.rs:265:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 7 (10 tests)

  • new::native_upsert::native_upsert::should_not_if_missing_update
  • queries::filters::self_relation::self_relation_filters::l1_query
  • queries::filters::self_relation::self_relation_filters::l2_one2one
  • queries::filters::self_relation::self_relation_filters::one2one_empty
  • queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_cursor
  • queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_skip_take
  • writes::ids::byoid::byoid::nested_upsert_should_work_1
  • writes::regressions::if_node_siblig_dep_regression::if_node_sibling::test
  • writes::relations::rel_graphql::rel_graphql::one2one_rel_allow_one_item_per_side
  • writes::top_level_mutations::non_embedded_upsert::non_embedded_upsert::execute_nested_create_of_correct_branch
1: writes::ids::byoid::byoid::nested_upsert_should_work_1 (10)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
not implemented: Discriminant(<DEC>)
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/byoid_nested_upsert_should_work_1.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
    id String @id @default(cuid())
    p        String  @unique
    childOpt Child?  @relation(fields: [childId], references: [id])
    childId  String?  @unique
}

model Child {
    id String @id @default(cuid())
    c         String @unique
    parentOpt Parent?
}
[2025-04-30T18:29:07Z INFO  tracing::span] diff;
[2025-04-30T18:29:07Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:29:07Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/byoid_nested_upsert_should_work_1.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n    id String @id @default(cuid())\n    p        String  @unique\n    childOpt Child?  @relation(fields: [childId], references: [id])\n    childId  String?  @unique\n}\n\nmodel Child {\n    id String @id @default(cuid())\n    c         String @unique\n    parentOpt Parent?\n}"), "url": String("file:/mnt/ram/db/byoid_nested_upsert_should_work_1.db")}
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/translate.rs:88:18:
not implemented: Discriminant(1)
    at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
    at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
    at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
    at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
    at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
    at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====

thread 'writes::ids::byoid::byoid::nested_upsert_should_work_1' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::writes::ids::byoid::byoid::nested_upsert_should_work_1
             at ./tests/writes/ids/byoid.rs:238:5
  28: query_engine_tests::writes::ids::byoid::byoid::nested_upsert_should_work_1::{{closure}}
             at ./tests/writes/ids/byoid.rs:238:40
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 8 (10 tests)

  • queries::aggregation::group_by::aggregation_group_by::group_by_multiple_ordering
  • queries::aggregation::group_by::aggregation_group_by::group_by_ordering_aggr_and_having
  • queries::aggregation::group_by::aggregation_group_by::group_by_ordering_aggr_multiple_fields
  • queries::aggregation::group_by::aggregation_group_by::group_by_ordering_avg_aggregation
  • queries::aggregation::group_by::aggregation_group_by::group_by_ordering_count_aggregation
  • queries::aggregation::group_by::aggregation_group_by::group_by_ordering_sum_aggregation
  • queries::aggregation::group_by::aggregation_group_by::group_by_rev_ordering
  • queries::aggregation::group_by::aggregation_group_by::group_by_scalar_filters
  • queries::aggregation::group_by_having::decimal_aggregation_group_by_having::having_min_scalar_filter
  • queries::filters::field_reference::having_filter::having_filter::basic_having_filter
1: queries::aggregation::group_by::aggregation_group_by::group_by_ordering_aggr_multiple_fields (10)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: Error: Expected zero or one element, got <DEC>
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/aggregation_group_by_group_by_ordering_aggr_multiple_fields.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model A {
    id Int @id
    float    Float
    int      Int
    string   String
    b_id     Int?
    b        B?     @relation(fields: [b_id], references: [id])
}

model B {
    id Int @id
    field  String
    many_a A[]
}
[2025-04-30T18:28:08Z INFO  tracing::span] diff;
[2025-04-30T18:28:08Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:08Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/aggregation_group_by_group_by_ordering_aggr_multiple_fields.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel A {\n    id Int @id\n    float    Float\n    int      Int\n    string   String\n    b_id     Int?\n    b        B?     @relation(fields: [b_id], references: [id])\n}\n\nmodel B {\n    id Int @id\n    field  String\n    many_a A[]\n}"), "url": String("file:/mnt/ram/db/aggregation_group_by_group_by_ordering_aggr_multiple_fields.db")}
Test failed due to an error:
=====
External process error: Server error: Error: Expected zero or one element, got 3
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:631:17)
    at async Promise.all (index 0)
    at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:577:25)
    at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:679:22)
    at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
    at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====

thread 'queries::aggregation::group_by::aggregation_group_by::group_by_ordering_aggr_multiple_fields' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::aggregation::group_by::aggregation_group_by::group_by_ordering_aggr_multiple_fields
             at ./tests/queries/aggregation/group_by.rs:447:5
  28: query_engine_tests::queries::aggregation::group_by::aggregation_group_by::group_by_ordering_aggr_multiple_fields::{{closure}}
             at ./tests/queries/aggregation/group_by.rs:447:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 9 (9 tests)

  • new::ref_actions::on_update::set_null::one2many_opt::upsert_parent
  • new::ref_actions::on_update::set_null::one2one_opt::upsert_parent
  • queries::filters::self_relation::self_relation_filters::many2many_every
  • queries::filters::self_relation::self_relation_filters::many2one_empty_filter
  • writes::ids::byoid::byoid::nested_upsert_should_work_2
  • writes::ids::byoid::byoid::upsert_should_work_1
  • writes::ids::relation_pks::single_pk_rel_field::single_pk_rel_field::id_also_1_1_multi_field_rel
  • writes::top_level_mutations::non_embedded_upsert::non_embedded_upsert::nested_connect_in_update
  • writes::uniques_and_node_selectors::multi_field_uniq_mutation::multi_field_uniq_mut::nested_connect_one2one_rel
1: queries::filters::self_relation::self_relation_filters::many2one_empty_filter (9)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
not implemented: Discriminant(<DEC>)
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/self_relation_filters_many2one_empty_filter.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Human {
    id String @id
    name       String
    wife_id    String? @unique
    mother_id  String?
    father_id  String?
    singer_id  String?
    title_id   String? @unique

    husband       Human? @relation(name: "Marriage")
    wife          Human? @relation(name: "Marriage",  fields: [wife_id],   references: [id], onDelete: NoAction, onUpdate: NoAction)
    mother        Human? @relation(name: "Cuckoo",    fields: [mother_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
    father        Human? @relation(name: "Offspring", fields: [father_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
    singer        Human? @relation(name: "Team",      fields: [singer_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
    title         Song?  @relation(                   fields: [title_id],  references: [id], onDelete: NoAction, onUpdate: NoAction)

    daughters     Human[] @relation(name: "Offspring")
    stepdaughters Human[] @relation(name: "Cuckoo")
    bandmembers   Human[] @relation(name: "Team")

    fans Human[] @relation(name: "Admirers")
    rockstars Human[] @relation(name: "Admirers")
}

model Song{
    id String @id
    title   String
    creator Human?
}

[2025-04-30T18:28:46Z INFO  tracing::span] diff;
[2025-04-30T18:28:46Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:46Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/self_relation_filters_many2one_empty_filter.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Human {\n    id String @id\n    name       String\n    wife_id    String? @unique\n    mother_id  String?\n    father_id  String?\n    singer_id  String?\n    title_id   String? @unique\n\n    husband       Human? @relation(name: \"Marriage\")\n    wife          Human? @relation(name: \"Marriage\",  fields: [wife_id],   references: [id], onDelete: NoAction, onUpdate: NoAction)\n    mother        Human? @relation(name: \"Cuckoo\",    fields: [mother_id], references: [id], onDelete: NoAction, onUpdate: NoAction)\n    father        Human? @relation(name: \"Offspring\", fields: [father_id], references: [id], onDelete: NoAction, onUpdate: NoAction)\n    singer        Human? @relation(name: \"Team\",      fields: [singer_id], references: [id], onDelete: NoAction, onUpdate: NoAction)\n    title         Song?  @relation(                   fields: [title_id],  references: [id], onDelete: NoAction, onUpdate: NoAction)\n\n    daughters     Human[] @relation(name: \"Offspring\")\n    stepdaughters Human[] @relation(name: \"Cuckoo\")\n    bandmembers   Human[] @relation(name: \"Team\")\n\n    fans Human[] @relation(name: \"Admirers\")\n    rockstars Human[] @relation(name: \"Admirers\")\n}\n\nmodel Song{\n    id String @id\n    title   String\n    creator Human?\n}\n"), "url": String("file:/mnt/ram/db/self_relation_filters_many2one_empty_filter.db")}
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/translate.rs:88:18:
not implemented: Discriminant(1)
    at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
    at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
    at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
    at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
    at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
    at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====

thread 'queries::filters::self_relation::self_relation_filters::many2one_empty_filter' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::filters::self_relation::self_relation_filters::many2one_empty_filter
             at ./tests/queries/filters/self_relation.rs:354:5
  28: query_engine_tests::queries::filters::self_relation::self_relation_filters::many2one_empty_filter::{{closure}}
             at ./tests/queries/filters/self_relation.rs:354:58
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 10 (7 tests)

  • queries::data_types::through_relation::scalar_relations::decimal_type
  • queries::data_types::through_relation::scalar_relations::json_type
  • queries::filters::many_relation::many_relation::simple_scalar_filter
  • queries::filters::one_relation::one_relation::nested_to_one_filter
  • queries::filters::self_relation_regression::sr_regression::all_categories
  • writes::data_types::decimal::decimal::using_decimal_as_id
  • writes::top_level_mutations::create::json_create::create_json_adv
1: queries::data_types::through_relation::scalar_relations::decimal_type (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_decimal_type
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"{ findManyParent(orderBy: { id: asc }) { id children { childId dec } } }"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> -{"data":{"findManyParent":[{"id":<DEC>,"children":[{"childId":<DEC>,"dec":"<DEC>"},{"childId":<DEC>,"dec":"-<DEC>"},{"childId":<DEC>,"dec":"<DEC>.<DEC>"},{"childId":<DEC>,"dec":"<DEC>.<DEC>"}]}]}}
<DEC> │+{"data":{"findManyParent":[{"id":<DEC>,"children":[{"childId":<DEC>,"dec":<DEC>},{"childId":<DEC>,"dec":-<DEC>},{"childId":<DEC>,"dec":<DEC>.<DEC>},{"childId":<DEC>,"dec":<DEC>.<DEC>}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_decimal_type' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/scalar_relations_decimal_type.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
  id Int @id

  children Child[]
}

model Child {
  childId Int @id

  parentId Int?
  parent Parent? @relation(fields: [parentId], references: [id])

  dec Decimal
}

[2025-04-30T18:28:21Z INFO  tracing::span] diff;
[2025-04-30T18:28:21Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:21Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/scalar_relations_decimal_type.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n  id Int @id\n\n  children Child[]\n}\n\nmodel Child {\n  childId Int @id\n\n  parentId Int?\n  parent Parent? @relation(fields: [parentId], references: [id])\n\n  dec Decimal\n}\n"), "url": String("file:/mnt/ram/db/scalar_relations_decimal_type.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_decimal_type
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/through_relation.rs:198
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
    &runner,
    r#"{ findManyParent(orderBy: { id: asc }) { id children { childId dec } } }"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyParent":[{"id":1,"children":[{"childId":1,"dec":"1"},{"childId":2,"dec":"-1"},{"childId":3,"dec":"123.4567891"},{"childId":4,"dec":"95993.57"}]}]}}
          0 +{"data":{"findManyParent":[{"id":1,"children":[{"childId":1,"dec":1},{"childId":2,"dec":-1},{"childId":3,"dec":123.4567891},{"childId":4,"dec":95993.57}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::data_types::through_relation::scalar_relations::decimal_type' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_decimal_type' failed in line 198
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::data_types::through_relation::scalar_relations::run_decimal_type::{{closure}}
             at ./tests/queries/data_types/through_relation.rs:198:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::data_types::through_relation::scalar_relations::decimal_type
             at ./tests/queries/data_types/through_relation.rs:178:5
  39: query_engine_tests::queries::data_types::through_relation::scalar_relations::decimal_type::{{closure}}
             at ./tests/queries/data_types/through_relation.rs:178:98
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::filters::many_relation::many_relation::simple_scalar_filter (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_simple_scalar_filter
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"query { findManyBlog { posts(where: { popularity: { gte: <DEC> }}, orderBy: { id: asc }) { title }}}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> -{"data":{"findManyBlog":[{"posts":[{"title":"post <DEC>"}]},{"posts":[{"title":"post <DEC>"}]}]}}
<DEC> +{"data":{"findManyBlog":[{"posts":[{"title":"post <DEC>"},{"title":"post <DEC>"}]},{"posts":[{"title":"post <DEC>"}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_simple_scalar_filter' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/many_relation_simple_scalar_filter.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Blog {
    id String @id @default(cuid())
    name  String
    posts Post[]
}

model Post {
    id String @id @default(cuid())
    title      String
    popularity Int
    blog_id    String
    blog       Blog      @relation(fields: [blog_id], references: [id])
    comments   Comment[]
}

model Comment {
    id String @id @default(cuid())
    text    String
    likes   Int
    post_id String
    post    Post   @relation(fields: [post_id], references: [id])
}

[2025-04-30T18:28:35Z INFO  tracing::span] diff;
[2025-04-30T18:28:35Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:35Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/many_relation_simple_scalar_filter.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Blog {\n    id String @id @default(cuid())\n    name  String\n    posts Post[]\n}\n\nmodel Post {\n    id String @id @default(cuid())\n    title      String\n    popularity Int\n    blog_id    String\n    blog       Blog      @relation(fields: [blog_id], references: [id])\n    comments   Comment[]\n}\n\nmodel Comment {\n    id String @id @default(cuid())\n    text    String\n    likes   Int\n    post_id String\n    post    Post   @relation(fields: [post_id], references: [id])\n}\n"), "url": String("file:/mnt/ram/db/many_relation_simple_scalar_filter.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_simple_scalar_filter
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/filters/many_relation.rs:43
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
    &runner,
    r#"query { findManyBlog { posts(where: { popularity: { gte: 5 }}, orderBy: { id: asc }) { title }}}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyBlog":[{"posts":[{"title":"post 1"}]},{"posts":[{"title":"post 3"}]}]}}
          0 +{"data":{"findManyBlog":[{"posts":[{"title":"post 1"},{"title":"post 2"}]},{"posts":[{"title":"post 3"}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::filters::many_relation::many_relation::simple_scalar_filter' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_simple_scalar_filter' failed in line 43
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::filters::many_relation::many_relation::run_simple_scalar_filter::{{closure}}
             at ./tests/queries/filters/many_relation.rs:43:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::filters::many_relation::many_relation::simple_scalar_filter
             at ./tests/queries/filters/many_relation.rs:39:5
  39: query_engine_tests::queries::filters::many_relation::many_relation::simple_scalar_filter::{{closure}}
             at ./tests/queries/filters/many_relation.rs:39:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: writes::top_level_mutations::create::json_create::create_json_adv (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_create_json_adv
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"mutation { createOneTestModel(data: { id: <DEC>, json: "{}" }) { json }}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"createOneTestModel":{"json":"{}"}}}
<DEC> │+{"data":{"createOneTestModel":{"json":{"value":"{}"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_create_json_adv' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/json_create_create_json_adv.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    json Json?
}
[2025-04-30T18:32:36Z INFO  tracing::span] diff;
[2025-04-30T18:32:36Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:32:36Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/json_create_create_json_adv.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    json Json?\n}"), "url": String("file:/mnt/ram/db/json_create_create_json_adv.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_create_json_adv
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/writes/top_level_mutations/create.rs:331
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
    &runner,
    r#"mutation { createOneTestModel(data: { id: 1, json: "{}" }) { json }}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"createOneTestModel":{"json":"{}"}}}
          0 +{"data":{"createOneTestModel":{"json":{"value":"{}"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'writes::top_level_mutations::create::json_create::create_json_adv' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_create_json_adv' failed in line 331
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::writes::top_level_mutations::create::json_create::run_create_json_adv::{{closure}}
             at ./tests/writes/top_level_mutations/create.rs:331:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::writes::top_level_mutations::create::json_create::create_json_adv
             at ./tests/writes/top_level_mutations/create.rs:329:5
  39: query_engine_tests::writes::top_level_mutations::create::json_create::create_json_adv::{{closure}}
             at ./tests/writes/top_level_mutations/create.rs:329:61
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 11 (6 tests)

  • queries::aggregation::combination_spec::combinations::no_records
  • queries::aggregation::combination_spec::combinations::some_records
  • queries::aggregation::combination_spec::combinations::with_query_args
  • queries::aggregation::combination_spec::decimal_combinations::no_records
  • queries::aggregation::combination_spec::decimal_combinations::some_records
  • queries::aggregation::combination_spec::decimal_combinations::with_query_args
1: queries::aggregation::combination_spec::combinations::with_query_args (3)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
Unknown type for aggregate field: float
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/combinations_with_query_args.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Item {
  id String @id @default(cuid())
  float Float   @map("db_float")
  int   Int     @map("db_int")
}

[2025-04-30T18:28:06Z INFO  tracing::span] diff;
[2025-04-30T18:28:06Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:06Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/combinations_with_query_args.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Item {\n  id String @id @default(cuid())\n  float Float   @map(\"db_float\")\n  int   Int     @map(\"db_int\")\n}\n"), "url": String("file:/mnt/ram/db/combinations_with_query_args.db")}
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/data_mapper.rs:141:21:
Unknown type for aggregate field: float
    at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
    at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
    at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
    at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
    at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
    at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====

thread 'queries::aggregation::combination_spec::combinations::with_query_args' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::aggregation::combination_spec::combinations::with_query_args
             at ./tests/queries/aggregation/combination_spec.rs:90:5
  28: query_engine_tests::queries::aggregation::combination_spec::combinations::with_query_args::{{closure}}
             at ./tests/queries/aggregation/combination_spec.rs:90:40
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::aggregation::combination_spec::decimal_combinations::no_records (3)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
Unknown type for aggregate field: dec
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/decimal_combinations_no_records.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Item {
  id String @id @default(cuid())
  dec Decimal @map("db_dec")
}

[2025-04-30T18:28:15Z INFO  tracing::span] diff;
[2025-04-30T18:28:15Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:15Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/decimal_combinations_no_records.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Item {\n  id String @id @default(cuid())\n  dec Decimal @map(\"db_dec\")\n}\n"), "url": String("file:/mnt/ram/db/decimal_combinations_no_records.db")}
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/data_mapper.rs:141:21:
Unknown type for aggregate field: dec
    at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
    at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
    at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
    at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
    at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
    at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====

thread 'queries::aggregation::combination_spec::decimal_combinations::no_records' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::aggregation::combination_spec::decimal_combinations::no_records
             at ./tests/queries/aggregation/combination_spec.rs:312:5
  28: query_engine_tests::queries::aggregation::combination_spec::decimal_combinations::no_records::{{closure}}
             at ./tests/queries/aggregation/combination_spec.rs:312:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 12 (6 tests)

  • queries::aggregation::group_by::aggregation_group_by::group_by_ordering_max_aggregation
  • queries::aggregation::group_by::aggregation_group_by::group_by_ordering_min_aggregation
  • queries::aggregation::group_by::aggregation_group_by::group_by_relation_filters
  • queries::aggregation::group_by::aggregation_group_by::group_by_some_records
  • queries::aggregation::group_by_having::aggr_group_by_having::basic_having_scalar_filter
  • queries::aggregation::group_by_having::decimal_aggregation_group_by_having::having_max_scalar_filter
1: queries::aggregation::group_by_having::aggr_group_by_having::basic_having_scalar_filter (6)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: Error: Expected zero or one element, got <DEC>
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/aggr_group_by_having_basic_having_scalar_filter.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    int     Int?
    bInt    BigInt?
    float   Float?
    string  String?
}
[2025-04-30T18:28:19Z INFO  tracing::span] diff;
[2025-04-30T18:28:19Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:19Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/aggr_group_by_having_basic_having_scalar_filter.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    int     Int?\n    bInt    BigInt?\n    float   Float?\n    string  String?\n}"), "url": String("file:/mnt/ram/db/aggr_group_by_having_basic_having_scalar_filter.db")}
Test failed due to an error:
=====
External process error: Server error: Error: Expected zero or one element, got 2
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:631:17)
    at async Promise.all (index 0)
    at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:577:25)
    at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:679:22)
    at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
    at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====

thread 'queries::aggregation::group_by_having::aggr_group_by_having::basic_having_scalar_filter' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::aggregation::group_by_having::aggr_group_by_having::basic_having_scalar_filter
             at ./tests/queries/aggregation/group_by_having.rs:17:5
  28: query_engine_tests::queries::aggregation::group_by_having::aggr_group_by_having::basic_having_scalar_filter::{{closure}}
             at ./tests/queries/aggregation/group_by_having.rs:17:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 13 (5 tests)

  • new::ref_actions::on_delete::set_null::one2one_opt::delete_parent_set_null_restrict
  • new::regressions::max_integer::max_integer::unfitted_int_should_fail
  • new::regressions::prisma_7434::not_in_chunking::not_in_batch_filter
  • queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching
  • writes::top_level_mutations::delete::delete::delete_fails_if_filter_dont_match
1: writes::top_level_mutations::delete::delete::delete_fails_if_filter_dont_match (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
Expected result to return an error, but found success: {"data":{"deleteOneTestModel":null}}
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/delete_delete_fails_if_filter_dont_match.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    field String?
}
[2025-04-30T18:30:32Z INFO  tracing::span] diff;
[2025-04-30T18:30:32Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:30:32Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/delete_delete_fails_if_filter_dont_match.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    field String?\n}"), "url": String("file:/mnt/ram/db/delete_delete_fails_if_filter_dont_match.db")}

thread 'writes::top_level_mutations::delete::delete::delete_fails_if_filter_dont_match' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"deleteOneTestModel":null}}
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::query_result::QueryResult::assert_failure
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
   3: query_engine_tests::writes::top_level_mutations::delete::delete::run_delete_fails_if_filter_dont_match::{{closure}}
             at ./tests/writes/top_level_mutations/delete.rs:121:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   7: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
   9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  10: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  12: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  13: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  16: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  17: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  19: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  22: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  23: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  24: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  25: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  26: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  30: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  32: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  33: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  34: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  35: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  36: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  37: query_engine_tests::writes::top_level_mutations::delete::delete::delete_fails_if_filter_dont_match
             at ./tests/writes/top_level_mutations/delete.rs:114:5
  38: query_engine_tests::writes::top_level_mutations::delete::delete::delete_fails_if_filter_dont_match::{{closure}}
             at ./tests/writes/top_level_mutations/delete.rs:114:39
  39: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  40: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: new::regressions::max_integer::max_integer::unfitted_int_should_fail (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
Expected result to return an error, but found success: {"data":{"createOneTest":{"id":<DEC>,"int":<ID>}}}
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/max_integer_unfitted_int_should_fail.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Test {
    id Int @id
    int Int
}

[2025-04-30T18:28:03Z INFO  tracing::span] diff;
[2025-04-30T18:28:03Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:03Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/max_integer_unfitted_int_should_fail.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Test {\n    id Int @id\n    int Int\n}\n"), "url": String("file:/mnt/ram/db/max_integer_unfitted_int_should_fail.db")}

thread 'new::regressions::max_integer::max_integer::unfitted_int_should_fail' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"createOneTest":{"id":1,"int":2147483648}}}
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::query_result::QueryResult::assert_failure
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
   3: query_engine_tests::new::regressions::max_integer::max_integer::run_unfitted_int_should_fail::{{closure}}
             at ./tests/new/regressions/max_integer.rs:168:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   7: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
   9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  10: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  12: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  13: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  16: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  17: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  19: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  22: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  23: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  24: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  25: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  26: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  30: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  32: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  33: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  34: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  35: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  36: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  37: query_engine_tests::new::regressions::max_integer::max_integer::unfitted_int_should_fail
             at ./tests/new/regressions/max_integer.rs:166:5
  38: query_engine_tests::new::regressions::max_integer::max_integer::unfitted_int_should_fail::{{closure}}
             at ./tests/new/regressions/max_integer.rs:166:68
  39: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  40: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
Expected result to return an error, but found success: {"data":{"findFirstOrThrowTestModel":null}}
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/find_first_or_throw_query_find_first_or_throw_not_matching.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    field String?
}
[2025-04-30T18:29:18Z INFO  tracing::span] diff;
[2025-04-30T18:29:18Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:29:18Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/find_first_or_throw_query_find_first_or_throw_not_matching.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    field String?\n}"), "url": String("file:/mnt/ram/db/find_first_or_throw_query_find_first_or_throw_not_matching.db")}

thread 'queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"findFirstOrThrowTestModel":null}}
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::query_result::QueryResult::assert_failure
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
   3: query_engine_tests::queries::simple::find_first_or_throw::find_first_or_throw_query::run_find_first_or_throw_not_matching::{{closure}}
             at ./tests/queries/simple/find_first_or_throw.rs:42:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   7: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
   9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  10: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  12: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  13: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  16: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  17: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  19: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  22: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  23: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  24: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  25: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  26: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  30: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  32: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  33: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  34: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  35: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  36: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  37: query_engine_tests::queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching
             at ./tests/queries/simple/find_first_or_throw.rs:38:5
  38: query_engine_tests::queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_not_matching::{{closure}}
             at ./tests/queries/simple/find_first_or_throw.rs:38:22
  39: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  40: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 14 (5 tests)

  • queries::data_types::json::json::json_null
  • queries::data_types::json::json::json_null_must_not_be_confused_with_literal_string
  • queries::data_types::json::json::read_plain_bool
  • queries::data_types::json::json::read_plain_float
  • queries::data_types::json::json::read_plain_int
1: queries::data_types::json::json::read_plain_float (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_plain_float
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findUniqueTestModel":{"json":"<DEC>.<DEC>"}}}
<DEC> │+{"data":{"findUniqueTestModel":{"json":{"value":<DEC>.<DEC>}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_plain_float' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/json_read_plain_float.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    json Json?
}
[2025-04-30T18:28:35Z INFO  tracing::span] diff;
[2025-04-30T18:28:35Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:35Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/json_read_plain_float.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    json Json?\n}"), "url": String("file:/mnt/ram/db/json_read_plain_float.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_plain_float
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/json.rs:94
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findUniqueTestModel":{"json":"1.5"}}}
          0 +{"data":{"findUniqueTestModel":{"json":{"value":1.5}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::data_types::json::json::read_plain_float' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_plain_float' failed in line 94
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::data_types::json::json::run_read_plain_float::{{closure}}
             at ./tests/queries/data_types/json.rs:94:17
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::data_types::json::json::read_plain_float
             at ./tests/queries/data_types/json.rs:86:5
  39: query_engine_tests::queries::data_types::json::json::read_plain_float::{{closure}}
             at ./tests/queries/data_types/json.rs:86:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::data_types::json::json::read_plain_bool (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_plain_bool
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findUniqueTestModel":{"json":"true"}}}
<DEC> │+{"data":{"findUniqueTestModel":{"json":{"value":"true"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_plain_bool' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/json_read_plain_bool.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    json Json?
}
[2025-04-30T18:28:17Z INFO  tracing::span] diff;
[2025-04-30T18:28:17Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:17Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/json_read_plain_bool.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    json Json?\n}"), "url": String("file:/mnt/ram/db/json_read_plain_bool.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_plain_bool
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/json.rs:176
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findUniqueTestModel":{"json":"true"}}}
          0 +{"data":{"findUniqueTestModel":{"json":{"value":"true"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::data_types::json::json::read_plain_bool' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_plain_bool' failed in line 176
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::data_types::json::json::run_read_plain_bool::{{closure}}
             at ./tests/queries/data_types/json.rs:176:17
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::data_types::json::json::read_plain_bool
             at ./tests/queries/data_types/json.rs:168:5
  39: query_engine_tests::queries::data_types::json::json::read_plain_bool::{{closure}}
             at ./tests/queries/data_types/json.rs:168:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::data_types::json::json::json_null (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_json_null
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyTestModel":[{"json":null},{"json":"null"}]}}
<DEC> │+{"data":{"findManyTestModel":[{"json":null},{"json":{"value":"null"}}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_json_null' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/json_json_null.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    json Json?
}
[2025-04-30T18:28:24Z INFO  tracing::span] diff;
[2025-04-30T18:28:24Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:24Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/json_json_null.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    json Json?\n}"), "url": String("file:/mnt/ram/db/json_json_null.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_json_null
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/json.rs:218
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyTestModel":[{"json":null},{"json":"null"}]}}
          0 +{"data":{"findManyTestModel":[{"json":null},{"json":{"value":"null"}}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::data_types::json::json::json_null' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_json_null' failed in line 218
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::data_types::json::json::run_json_null::{{closure}}
             at ./tests/queries/data_types/json.rs:218:17
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::data_types::json::json::json_null
             at ./tests/queries/data_types/json.rs:209:5
  39: query_engine_tests::queries::data_types::json::json::json_null::{{closure}}
             at ./tests/queries/data_types/json.rs:209:61
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 15 (4 tests)

  • queries::filters::self_relation::self_relation_filters::one2many_empty
  • writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_1_multi_field_rel
  • writes::regressions::prisma_11731::connect_or_create::one2one_inlined_child
  • writes::regressions::prisma_11731::connect_or_create::one2one_inlined_parent
1: writes::regressions::prisma_11731::connect_or_create::one2one_inlined_parent (4)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
not implemented: Discriminant(<DEC>)
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/connect_or_create_one2one_inlined_parent.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model MyModel {
    id Int @id
    name   String
    itemId Int?   @unique
    item   Item?  @relation(references: [id], fields: [itemId])
}

model Item {
    id Int @id
    uniq    String   @unique
    myModel MyModel?
}
[2025-04-30T18:30:21Z INFO  tracing::span] diff;
[2025-04-30T18:30:21Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:30:21Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/connect_or_create_one2one_inlined_parent.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel MyModel {\n    id Int @id\n    name   String\n    itemId Int?   @unique\n    item   Item?  @relation(references: [id], fields: [itemId])\n}\n\nmodel Item {\n    id Int @id\n    uniq    String   @unique\n    myModel MyModel?\n}"), "url": String("file:/mnt/ram/db/connect_or_create_one2one_inlined_parent.db")}
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/translate.rs:88:18:
not implemented: Discriminant(1)
    at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
    at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
    at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
    at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
    at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
    at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====

thread 'writes::regressions::prisma_11731::connect_or_create::one2one_inlined_parent' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::writes::regressions::prisma_11731::connect_or_create::one2one_inlined_parent
             at ./tests/writes/regressions/prisma_11731.rs:102:5
  28: query_engine_tests::writes::regressions::prisma_11731::connect_or_create::one2one_inlined_parent::{{closure}}
             at ./tests/writes/regressions/prisma_11731.rs:102:38
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 16 (4 tests)

  • new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure
  • new::ref_actions::on_delete::restrict::one2many_req::delete_parent_failure
  • new::ref_actions::on_delete::restrict::one2one_opt::delete_parent_failure
  • new::ref_actions::on_delete::restrict::one2one_req::delete_parent_failure
1: new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure (4)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
Expected result to return an error, but found success: {"data":{"deleteOneParent":{"id":<DEC>}}}
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/restrict_onD_1toM_opt_delete_parent_failure.db"
    relationMode = "prisma"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
    id Int @id
    children Child[]
}

model Child {
    id Int @id
    parent_id Int?
    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: Restrict)
}
[2025-04-30T18:28:00Z INFO  tracing::span] diff;
[2025-04-30T18:28:00Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:00Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/restrict_onD_1toM_opt_delete_parent_failure.db\"\n    relationMode = \"prisma\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n    id Int @id\n    children Child[]\n}\n\nmodel Child {\n    id Int @id\n    parent_id Int?\n    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: Restrict)\n}"), "url": String("file:/mnt/ram/db/restrict_onD_1toM_opt_delete_parent_failure.db")}

thread 'new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"deleteOneParent":{"id":1}}}
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::query_result::QueryResult::assert_failure
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
   3: query_engine_tests::new::ref_actions::on_delete::restrict::one2many_opt::run_delete_parent_failure::{{closure}}
             at ./tests/new/ref_actions/on_delete/restrict.rs:254:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   7: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
   9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  10: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  12: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  13: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  16: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  17: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  19: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  22: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  23: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  24: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  25: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  26: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  30: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  32: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  33: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  34: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  35: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  36: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  37: query_engine_tests::new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure
             at ./tests/new/ref_actions/on_delete/restrict.rs:247:5
  38: query_engine_tests::new::ref_actions::on_delete::restrict::one2many_opt::delete_parent_failure::{{closure}}
             at ./tests/new/ref_actions/on_delete/restrict.rs:247:22
  39: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  40: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 17 (4 tests)

  • queries::data_types::decimal::decimal::read_many
  • queries::data_types::decimal::decimal::read_one
  • queries::data_types::json::json::read_many
  • queries::data_types::json::json::read_one
1: queries::data_types::json::json::read_one (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_one
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findUniqueTestModel":{"json":"{}"}}}
<DEC> │+{"data":{"findUniqueTestModel":{"json":{"value":"{}"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_one' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/json_read_one.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    json Json?
}
[2025-04-30T18:28:23Z INFO  tracing::span] diff;
[2025-04-30T18:28:23Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:23Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/json_read_one.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    json Json?\n}"), "url": String("file:/mnt/ram/db/json_read_one.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_one
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/json.rs:15
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findUniqueTestModel":{"json":"{}"}}}
          0 +{"data":{"findUniqueTestModel":{"json":{"value":"{}"}}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::data_types::json::json::read_one' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_one' failed in line 15
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::data_types::json::json::run_read_one::{{closure}}
             at ./tests/queries/data_types/json.rs:15:17
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::data_types::json::json::read_one
             at ./tests/queries/data_types/json.rs:7:5
  39: query_engine_tests::queries::data_types::json::json::read_one::{{closure}}
             at ./tests/queries/data_types/json.rs:7:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::data_types::decimal::decimal::read_one (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_one
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findUniqueTestModel":{"decimal":"<DEC>.<DEC>"}}}
<DEC> │+{"data":{"findUniqueTestModel":{"decimal":<DEC>.<DEC>}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_one' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/decimal_read_one.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
  id Int @id
  decimal Decimal?
}
[2025-04-30T18:28:15Z INFO  tracing::span] diff;
[2025-04-30T18:28:15Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:15Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/decimal_read_one.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n  id Int @id\n  decimal Decimal?\n}"), "url": String("file:/mnt/ram/db/decimal_read_one.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_one
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/decimal.rs:26
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findUniqueTestModel":{"decimal":"12.3456"}}}
          0 +{"data":{"findUniqueTestModel":{"decimal":12.3456}}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::data_types::decimal::decimal::read_one' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_one' failed in line 26
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::data_types::decimal::decimal::run_read_one::{{closure}}
             at ./tests/queries/data_types/decimal.rs:26:17
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::data_types::decimal::decimal::read_one
             at ./tests/queries/data_types/decimal.rs:18:5
  39: query_engine_tests::queries::data_types::decimal::decimal::read_one::{{closure}}
             at ./tests/queries/data_types/decimal.rs:18:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::data_types::decimal::decimal::read_many (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_many
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyTestModel":[{"decimal":"<DEC>.<DEC>"},{"decimal":"-<DEC>.<DEC>"},{"decimal":null}]}}
<DEC> │+{"data":{"findManyTestModel":[{"decimal":<DEC>.<DEC>},{"decimal":-<DEC>.<DEC>},{"decimal":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_read_many' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/decimal_read_many.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
  id Int @id
  decimal Decimal?
}
[2025-04-30T18:28:29Z INFO  tracing::span] diff;
[2025-04-30T18:28:29Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:29Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/decimal_read_many.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n  id Int @id\n  decimal Decimal?\n}"), "url": String("file:/mnt/ram/db/decimal_read_many.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_read_many
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/data_types/decimal.rs:67
────────────────────────────────────────────────────────────────────────────────
Expression: res
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyTestModel":[{"decimal":"12.3456"},{"decimal":"-1.2345678"},{"decimal":null}]}}
          0 +{"data":{"findManyTestModel":[{"decimal":12.3456},{"decimal":-1.2345678},{"decimal":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::data_types::decimal::decimal::read_many' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_read_many' failed in line 67
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::data_types::decimal::decimal::run_read_many::{{closure}}
             at ./tests/queries/data_types/decimal.rs:67:17
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::data_types::decimal::decimal::read_many
             at ./tests/queries/data_types/decimal.rs:59:5
  39: query_engine_tests::queries::data_types::decimal::decimal::read_many::{{closure}}
             at ./tests/queries/data_types/decimal.rs:59:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 18 (4 tests)

  • new::ref_actions::on_update::set_null::one2many_opt::upsert_parent_nested
  • writes::ids::upsert_uuid::upsert_uuid::upsert_id_uuid_should_work
  • writes::top_level_mutations::non_embedded_upsert::non_embedded_upsert::nested_connect_in_correct_update_branch
  • writes::top_level_mutations::upsert::upsert::only_update_if_uniq_field_change
1: writes::top_level_mutations::upsert::upsert::only_update_if_uniq_field_change (4)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
not implemented: Discriminant(<DEC>)
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/upsert_only_update_if_uniq_field_change.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Todo {
  id Int @id
  title          String
  alias          String  @unique
  anotherIDField String? @unique
}

model WithDefaultValue {
  id Int @id
  reqString String @default(value: "defaultValue")
  title     String
}

model MultipleFields {
  id Int @id
  reqString  String
  reqInt     Int
  reqFloat   Float
  reqBoolean Boolean
}
[2025-04-30T18:30:53Z INFO  tracing::span] diff;
[2025-04-30T18:30:53Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:30:53Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/upsert_only_update_if_uniq_field_change.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Todo {\n  id Int @id\n  title          String\n  alias          String  @unique\n  anotherIDField String? @unique\n}\n\nmodel WithDefaultValue {\n  id Int @id\n  reqString String @default(value: \"defaultValue\")\n  title     String\n}\n\nmodel MultipleFields {\n  id Int @id\n  reqString  String\n  reqInt     Int\n  reqFloat   Float\n  reqBoolean Boolean\n}"), "url": String("file:/mnt/ram/db/upsert_only_update_if_uniq_field_change.db")}
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/translate.rs:88:18:
not implemented: Discriminant(1)
    at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
    at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
    at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
    at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
    at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
    at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====

thread 'writes::top_level_mutations::upsert::upsert::only_update_if_uniq_field_change' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::writes::top_level_mutations::upsert::upsert::only_update_if_uniq_field_change
             at ./tests/writes/top_level_mutations/upsert.rs:288:5
  28: query_engine_tests::writes::top_level_mutations::upsert::upsert::only_update_if_uniq_field_change::{{closure}}
             at ./tests/writes/top_level_mutations/upsert.rs:288:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 19 (4 tests)

  • new::ref_actions::on_delete::cascade::one2many_opt::delete_parent
  • new::ref_actions::on_delete::cascade::one2many_req::delete_parent
  • new::ref_actions::on_delete::cascade::one2one_opt::delete_parent
  • new::ref_actions::on_delete::cascade::one2one_req::delete_parent
1: new::ref_actions::on_delete::cascade::one2one_opt::delete_parent (2)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-<DEC>
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, "query { findManyChild { id }}")
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> -{"data":{"findManyChild":[]}}
<DEC> +{"data":{"findManyChild":[{"id":<DEC>}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_delete_parent-<DEC>' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/cascade_onD_1to1_opt_delete_parent.db"
    relationMode = "prisma"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
    id Int @id
    child Child?
}

model Child {
    id Int @id
    parent_id Int? @unique
    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: Cascade)
}
[2025-04-30T18:27:57Z INFO  tracing::span] diff;
[2025-04-30T18:27:57Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:27:57Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/cascade_onD_1to1_opt_delete_parent.db\"\n    relationMode = \"prisma\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n    id Int @id\n    child Child?\n}\n\nmodel Child {\n    id Int @id\n    parent_id Int? @unique\n    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: Cascade)\n}"), "url": String("file:/mnt/ram/db/cascade_onD_1to1_opt_delete_parent.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-3
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_delete/cascade.rs:82
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, "query { findManyChild { id }}")
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyChild":[]}}
          0 +{"data":{"findManyChild":[{"id":1}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'new::ref_actions::on_delete::cascade::one2one_opt::delete_parent' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_delete_parent-3' failed in line 82
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::new::ref_actions::on_delete::cascade::one2one_opt::run_delete_parent::{{closure}}
             at ./tests/new/ref_actions/on_delete/cascade.rs:82:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::new::ref_actions::on_delete::cascade::one2one_opt::delete_parent
             at ./tests/new/ref_actions/on_delete/cascade.rs:70:5
  39: query_engine_tests::new::ref_actions::on_delete::cascade::one2one_opt::delete_parent::{{closure}}
             at ./tests/new/ref_actions/on_delete/cascade.rs:70:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: new::ref_actions::on_delete::cascade::one2many_opt::delete_parent (2)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-<DEC>
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, "query { findManyChild { id }}")
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> -{"data":{"findManyChild":[]}}
<DEC> +{"data":{"findManyChild":[{"id":<DEC>},{"id":<DEC>}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_delete_parent-<DEC>' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/cascade_onD_1toM_opt_delete_parent.db"
    relationMode = "prisma"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
    id Int @id
    children Child[]
}

model Child {
    id Int @id
    parent_id Int?
    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: Cascade)
}
[2025-04-30T18:28:00Z INFO  tracing::span] diff;
[2025-04-30T18:28:00Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:00Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/cascade_onD_1toM_opt_delete_parent.db\"\n    relationMode = \"prisma\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n    id Int @id\n    children Child[]\n}\n\nmodel Child {\n    id Int @id\n    parent_id Int?\n    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: Cascade)\n}"), "url": String("file:/mnt/ram/db/cascade_onD_1toM_opt_delete_parent.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-3
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_delete/cascade.rs:210
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, "query { findManyChild { id }}")
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyChild":[]}}
          0 +{"data":{"findManyChild":[{"id":1},{"id":2}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'new::ref_actions::on_delete::cascade::one2many_opt::delete_parent' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_delete_parent-3' failed in line 210
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::new::ref_actions::on_delete::cascade::one2many_opt::run_delete_parent::{{closure}}
             at ./tests/new/ref_actions/on_delete/cascade.rs:210:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::new::ref_actions::on_delete::cascade::one2many_opt::delete_parent
             at ./tests/new/ref_actions/on_delete/cascade.rs:198:5
  39: query_engine_tests::new::ref_actions::on_delete::cascade::one2many_opt::delete_parent::{{closure}}
             at ./tests/new/ref_actions/on_delete/cascade.rs:198:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 20 (4 tests)

  • queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_cursor_skip_take
  • writes::ids::byoid::byoid::upsert_should_work_2
  • writes::top_level_mutations::non_embedded_upsert::non_embedded_upsert::nested_delete_in_update
  • writes::uniques_and_node_selectors::relation_uniques::compound_uniq_rel_field::compound_uniq_rel_field::compound_uniq_with_1_m_single_rel
1: queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_cursor_skip_take (4)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler<PATH>:<DEC>:<DEC>:
not implemented: Discriminant(<DEC>)
at withLocalPanicHandler (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.executeQuery (file:<PATH>:<DEC>:<DEC>)
at QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at query (file:<PATH>:<DEC>:<DEC>)
at dispatchMessage (file:<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
at [nodejs.internal.kHybridDispatch] (node:internal<PATH>:<DEC>:<DEC>)
at MessagePort.<anonymous> (node:internal<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/nested_pagination_m2m_many_children_nested_cursor_skip_take.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model ModelA {
    id String @id
    manyB ModelB[] 
  }

  model ModelB {
    id String @id
    manyA ModelA[] 
  }

[2025-04-30T18:28:59Z INFO  tracing::span] diff;
[2025-04-30T18:28:59Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:59Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/nested_pagination_m2m_many_children_nested_cursor_skip_take.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel ModelA {\n    id String @id\n    manyB ModelB[] \n  }\n\n  model ModelB {\n    id String @id\n    manyA ModelA[] \n  }\n"), "url": String("file:/mnt/ram/db/nested_pagination_m2m_many_children_nested_cursor_skip_take.db")}
Test failed due to an error:
=====
External process error: Server error: PanicError: Panic in WASM module: panicked at query-compiler/query-compiler/src/translate.rs:88:18:
not implemented: Discriminant(1)
    at withLocalPanicHandler (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:383:13)
    at QueryPipeline.executeQuery (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:446:25)
    at QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:35)
    at query (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:397:19)
    at dispatchMessage (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:690:14)
    at MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:22)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
=====

thread 'queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_cursor_skip_take' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_cursor_skip_take
             at ./tests/queries/order_and_pagination/nested_pagination.rs:682:5
  28: query_engine_tests::queries::order_and_pagination::nested_pagination::nested_pagination::m2m_many_children_nested_cursor_skip_take::{{closure}}
             at ./tests/queries/order_and_pagination/nested_pagination.rs:682:42
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 21 (4 tests)

  • queries::aggregation::max::aggregation_max::max_no_records
  • queries::aggregation::max::aggregation_max::max_some_records
  • queries::aggregation::max::aggregation_max::max_with_all_sorts_of_query_args
  • queries::aggregation::max::decimal_aggregation_max::max_no_records
1: queries::aggregation::max::aggregation_max::max_no_records (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: Error: DataMapper: Missing data field (Object): '_max'; node: {"type":"Object","fields":{"string":{"type":"Value","dbName":"string","resultType":{"type":"String"}},"int":{"type":"Value","dbName":"int","resultType":{"type":"Int"}},"bInt":{"type":"Value","dbName":"bInt","resultType":{"type":"BigInt"}},"float":{"type":"Value","dbName":"float","resultType":{"type":"Float"}}}}; data: {"string":null,"int":null,"bInt":null,"float":null}
at mapObject (file:<PATH>:<DEC>:<DEC>)
at mapArrayOrObject (file:<PATH>:<DEC>:<DEC>)
at applyDataMap (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/aggregation_max_max_no_records.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    int     Int
    bInt    BigInt
    float   Float
    string  String
}
[2025-04-30T18:28:25Z INFO  tracing::span] diff;
[2025-04-30T18:28:25Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:25Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/aggregation_max_max_no_records.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    int     Int\n    bInt    BigInt\n    float   Float\n    string  String\n}"), "url": String("file:/mnt/ram/db/aggregation_max_max_no_records.db")}
Test failed due to an error:
=====
External process error: Server error: Error: DataMapper: Missing data field (Object): '_max'; node: {"type":"Object","fields":{"string":{"type":"Value","dbName":"string","resultType":{"type":"String"}},"int":{"type":"Value","dbName":"int","resultType":{"type":"Int"}},"bInt":{"type":"Value","dbName":"bInt","resultType":{"type":"BigInt"}},"float":{"type":"Value","dbName":"float","resultType":{"type":"Float"}}}}; data: {"string":null,"int":null,"bInt":null,"float":null}
    at mapObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:205:17)
    at mapArrayOrObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:190:12)
    at applyDataMap (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:175:14)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:680:16)
    at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
    at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====

thread 'queries::aggregation::max::aggregation_max::max_no_records' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::aggregation::max::aggregation_max::max_no_records
             at ./tests/queries/aggregation/max.rs:7:5
  28: query_engine_tests::queries::aggregation::max::aggregation_max::max_no_records::{{closure}}
             at ./tests/queries/aggregation/max.rs:7:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::aggregation::max::decimal_aggregation_max::max_no_records (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: Error: DataMapper: Missing data field (Object): '_max'; node: {"type":"Object","fields":{"decimal":{"type":"Value","dbName":"decimal","resultType":{"type":"Decimal"}}}}; data: {"decimal":null}
at mapObject (file:<PATH>:<DEC>:<DEC>)
at mapArrayOrObject (file:<PATH>:<DEC>:<DEC>)
at applyDataMap (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/decimal_aggregation_max_max_no_records.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    decimal Decimal
}
[2025-04-30T18:28:15Z INFO  tracing::span] diff;
[2025-04-30T18:28:15Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:15Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/decimal_aggregation_max_max_no_records.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    decimal Decimal\n}"), "url": String("file:/mnt/ram/db/decimal_aggregation_max_max_no_records.db")}
Test failed due to an error:
=====
External process error: Server error: Error: DataMapper: Missing data field (Object): '_max'; node: {"type":"Object","fields":{"decimal":{"type":"Value","dbName":"decimal","resultType":{"type":"Decimal"}}}}; data: {"decimal":null}
    at mapObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:205:17)
    at mapArrayOrObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:190:12)
    at applyDataMap (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:175:14)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:680:16)
    at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
    at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====

thread 'queries::aggregation::max::decimal_aggregation_max::max_no_records' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::aggregation::max::decimal_aggregation_max::max_no_records
             at ./tests/queries/aggregation/max.rs:97:5
  28: query_engine_tests::queries::aggregation::max::decimal_aggregation_max::max_no_records::{{closure}}
             at ./tests/queries/aggregation/max.rs:97:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::aggregation::max::aggregation_max::max_some_records (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: Error: DataMapper: Missing data field (Object): '_max'; node: {"type":"Object","fields":{"int":{"type":"Value","dbName":"int","resultType":{"type":"Int"}},"bInt":{"type":"Value","dbName":"bInt","resultType":{"type":"BigInt"}},"float":{"type":"Value","dbName":"float","resultType":{"type":"Float"}},"string":{"type":"Value","dbName":"string","resultType":{"type":"String"}}}}; data: {"int":"<DEC>","bInt":"<DEC>","float":<DEC>.<DEC>,"string":"b"}
at mapObject (file:<PATH>:<DEC>:<DEC>)
at mapArrayOrObject (file:<PATH>:<DEC>:<DEC>)
at applyDataMap (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/aggregation_max_max_some_records.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    int     Int
    bInt    BigInt
    float   Float
    string  String
}
[2025-04-30T18:28:10Z INFO  tracing::span] diff;
[2025-04-30T18:28:10Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:10Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/aggregation_max_max_some_records.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    int     Int\n    bInt    BigInt\n    float   Float\n    string  String\n}"), "url": String("file:/mnt/ram/db/aggregation_max_max_some_records.db")}
Test failed due to an error:
=====
External process error: Server error: Error: DataMapper: Missing data field (Object): '_max'; node: {"type":"Object","fields":{"int":{"type":"Value","dbName":"int","resultType":{"type":"Int"}},"bInt":{"type":"Value","dbName":"bInt","resultType":{"type":"BigInt"}},"float":{"type":"Value","dbName":"float","resultType":{"type":"Float"}},"string":{"type":"Value","dbName":"string","resultType":{"type":"String"}}}}; data: {"int":"10","bInt":"10","float":5.5,"string":"b"}
    at mapObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:205:17)
    at mapArrayOrObject (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:190:12)
    at applyDataMap (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:175:14)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:680:16)
    at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:430:24)
    at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====

thread 'queries::aggregation::max::aggregation_max::max_some_records' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::aggregation::max::aggregation_max::max_some_records
             at ./tests/queries/aggregation/max.rs:17:5
  28: query_engine_tests::queries::aggregation::max::aggregation_max::max_some_records::{{closure}}
             at ./tests/queries/aggregation/max.rs:17:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 22 (3 tests)

  • queries::simple::find_first::find_first_query::find_first_matching
  • queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_matching
  • queries::simple::find_unique_or_throw::find_unique_or_throw::find_unique_or_throw_when_record_is_found
1: queries::simple::find_first::find_first_query::find_first_matching (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
assertion `left == right` failed
left: "{\"data\":{\"findFirstTestModel\":[{\"id\":<DEC>}]}}"
right: "{\"data\":{\"findFirstTestModel\":{\"id\":<DEC>}}}"
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/find_first_query_find_first_matching.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    field String?
}
[2025-04-30T18:29:03Z INFO  tracing::span] diff;
[2025-04-30T18:29:03Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:29:03Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/find_first_query_find_first_matching.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    field String?\n}"), "url": String("file:/mnt/ram/db/find_first_query_find_first_matching.db")}

thread 'queries::simple::find_first::find_first_query::find_first_matching' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/simple/find_first.rs:29:9:
assertion `left == right` failed
  left: "{\"data\":{\"findFirstTestModel\":[{\"id\":2}]}}"
 right: "{\"data\":{\"findFirstTestModel\":{\"id\":2}}}"
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
   4: query_engine_tests::queries::simple::find_first::find_first_query::run_find_first_matching::{{closure}}
             at ./tests/queries/simple/find_first.rs:29:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::simple::find_first::find_first_query::find_first_matching
             at ./tests/queries/simple/find_first.rs:7:5
  39: query_engine_tests::queries::simple::find_first::find_first_query::find_first_matching::{{closure}}
             at ./tests/queries/simple/find_first.rs:7:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::simple::find_unique_or_throw::find_unique_or_throw::find_unique_or_throw_when_record_is_found (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
assertion `left == right` failed
left: "{\"data\":{\"findUniqueOrThrowUser\":{\"id\":<DEC>}}}"
right: "{\"data\":{\"findUniqueUserOrThrow\":{\"id\":<DEC>}}}"
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/find_unique_or_throw_find_unique_or_throw_when_record_is_found.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model User {
    id Int @id
    first_name String
    last_name  String
    email      String    @unique
    birthday   DateTime?

    @@unique([first_name, last_name])
}
[2025-04-30T18:28:59Z INFO  tracing::span] diff;
[2025-04-30T18:28:59Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:59Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/find_unique_or_throw_find_unique_or_throw_when_record_is_found.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel User {\n    id Int @id\n    first_name String\n    last_name  String\n    email      String    @unique\n    birthday   DateTime?\n\n    @@unique([first_name, last_name])\n}"), "url": String("file:/mnt/ram/db/find_unique_or_throw_find_unique_or_throw_when_record_is_found.db")}

thread 'queries::simple::find_unique_or_throw::find_unique_or_throw::find_unique_or_throw_when_record_is_found' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/simple/find_unique_or_throw.rs:11:9:
assertion `left == right` failed
  left: "{\"data\":{\"findUniqueOrThrowUser\":{\"id\":1}}}"
 right: "{\"data\":{\"findUniqueUserOrThrow\":{\"id\":1}}}"
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
   4: query_engine_tests::queries::simple::find_unique_or_throw::find_unique_or_throw::run_find_unique_or_throw_when_record_is_found::{{closure}}
             at ./tests/queries/simple/find_unique_or_throw.rs:11:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::simple::find_unique_or_throw::find_unique_or_throw::find_unique_or_throw_when_record_is_found
             at ./tests/queries/simple/find_unique_or_throw.rs:7:5
  39: query_engine_tests::queries::simple::find_unique_or_throw::find_unique_or_throw::find_unique_or_throw_when_record_is_found::{{closure}}
             at ./tests/queries/simple/find_unique_or_throw.rs:7:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
3: queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_matching (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
assertion `left == right` failed
left: "{\"data\":{\"findFirstOrThrowTestModel\":{\"id\":<DEC>}}}"
right: "{\"data\":{\"findFirstTestModelOrThrow\":{\"id\":<DEC>}}}"
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/find_first_or_throw_query_find_first_or_throw_matching.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
    id Int @id
    field String?
}
[2025-04-30T18:28:49Z INFO  tracing::span] diff;
[2025-04-30T18:28:49Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:49Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/find_first_or_throw_query_find_first_or_throw_matching.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n    id Int @id\n    field String?\n}"), "url": String("file:/mnt/ram/db/find_first_or_throw_query_find_first_or_throw_matching.db")}

thread 'queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_matching' panicked at query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/simple/find_first_or_throw.rs:11:9:
assertion `left == right` failed
  left: "{\"data\":{\"findFirstOrThrowTestModel\":{\"id\":1}}}"
 right: "{\"data\":{\"findFirstTestModelOrThrow\":{\"id\":1}}}"
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:380:5
   4: query_engine_tests::queries::simple::find_first_or_throw::find_first_or_throw_query::run_find_first_or_throw_matching::{{closure}}
             at ./tests/queries/simple/find_first_or_throw.rs:11:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_matching
             at ./tests/queries/simple/find_first_or_throw.rs:7:5
  39: query_engine_tests::queries::simple::find_first_or_throw::find_first_or_throw_query::find_first_or_throw_matching::{{closure}}
             at ./tests/queries/simple/find_first_or_throw.rs:7:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 23 (3 tests)

  • queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id
  • queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_multi_unique
  • queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_single_unique
1: queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id (3)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
Expected result to return an error, but found success: {"data":{"findUniqueOrThrowUser":null}}
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/find_unique_or_throw_no_result_find_unique_by_id.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model User {
    id Int @id
    first_name String
    last_name  String
    email      String    @unique
    birthday   DateTime?

    @@unique([first_name, last_name])
}
[2025-04-30T18:29:06Z INFO  tracing::span] diff;
[2025-04-30T18:29:06Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:29:06Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/find_unique_or_throw_no_result_find_unique_by_id.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel User {\n    id Int @id\n    first_name String\n    last_name  String\n    email      String    @unique\n    birthday   DateTime?\n\n    @@unique([first_name, last_name])\n}"), "url": String("file:/mnt/ram/db/find_unique_or_throw_no_result_find_unique_by_id.db")}

thread 'queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id' panicked at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13:
Expected result to return an error, but found success: {"data":{"findUniqueOrThrowUser":null}}
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::query_result::QueryResult::assert_failure
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/query_result.rs:84:13
   3: query_engine_tests::queries::simple::find_unique_or_throw::find_unique_or_throw::run_no_result_find_unique_by_id::{{closure}}
             at ./tests/queries/simple/find_unique_or_throw.rs:36:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   6: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   7: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   8: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
   9: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  10: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  11: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  12: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  13: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  16: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  17: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  19: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  21: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  22: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  23: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  24: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  25: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  26: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  27: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  28: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  29: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  30: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  31: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  32: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  33: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  34: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  35: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  36: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  37: query_engine_tests::queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id
             at ./tests/queries/simple/find_unique_or_throw.rs:32:5
  38: query_engine_tests::queries::simple::find_unique_or_throw::find_unique_or_throw::no_result_find_unique_by_id::{{closure}}
             at ./tests/queries/simple/find_unique_or_throw.rs:32:22
  39: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  40: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 24 (3 tests)

  • queries::batching::transactional_batch::transactional::batch_request_idx
  • queries::batching::transactional_batch::transactional::one_query
  • queries::batching::transactional_batch::transactional::one_success_one_fail
1: queries::batching::transactional_batch::transactional::one_success_one_fail (3)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: UserFacingError: Unique constraint failed on the fields: (`id`)
at rethrowAsUserFacing (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at async QueryPipeline.executeTransactionalBatch (file:<PATH>:<DEC>:<DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/transactional_one_success_one_fail.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model ModelA {
    id Int @id
    b_id Int? @unique
    b ModelB? @relation(fields: [b_id], references: [id])
}

model ModelB {
    id Int @id
    a  ModelA?
}

model ModelC {
    id Int @id
}

model User {
    id Int @id
    email      String    @unique
    name       String    @unique
}

[2025-04-30T18:28:18Z INFO  tracing::span] diff;
[2025-04-30T18:28:18Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:18Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/transactional_one_success_one_fail.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel ModelA {\n    id Int @id\n    b_id Int? @unique\n    b ModelB? @relation(fields: [b_id], references: [id])\n}\n\nmodel ModelB {\n    id Int @id\n    a  ModelA?\n}\n\nmodel ModelC {\n    id Int @id\n}\n\nmodel User {\n    id Int @id\n    email      String    @unique\n    name       String    @unique\n}\n"), "url": String("file:/mnt/ram/db/transactional_one_success_one_fail.db")}
Test failed due to an error:
=====
External process error: Server error: UserFacingError: Unique constraint failed on the fields: (`id`)
    at rethrowAsUserFacing (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:60:9)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:571:14
    at async QueryPipeline.executeTransactionalBatch (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:493:24)
    at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:412:37)
    at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====

thread 'queries::batching::transactional_batch::transactional::one_success_one_fail' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::batching::transactional_batch::transactional::one_success_one_fail
             at ./tests/queries/batching/transactional_batch.rs:76:5
  28: query_engine_tests::queries::batching::transactional_batch::transactional::one_success_one_fail::{{closure}}
             at ./tests/queries/batching/transactional_batch.rs:76:47
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 25 (3 tests)

  • queries::batching::select_one_singular::singular_batch::relation_traversal
  • queries::batching::select_one_singular::singular_batch::relation_traversal_filtered
  • queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff
1: queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff (3)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: Error: Expected object, got object
at asRecord (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at async Promise.all (index <DEC>)
at async QueryPipeline.run (file:<PATH>:<DEC>:<DEC>)
at async MessagePort.<anonymous> (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/singular_batch_relation_traversal_filtered_diff.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Artist {
    id String @id @default(cuid())
    ArtistId Int     @unique
    Name     String
    Albums   Album[]
}

model Album {
    id String @id @default(cuid())
    AlbumId  Int     @unique
    Title    String
    ArtistId String

    Artist  Artist  @relation(fields: [ArtistId], references: [id])
    @@index([ArtistId])
}

[2025-04-30T18:28:26Z INFO  tracing::span] diff;
[2025-04-30T18:28:26Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:26Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/singular_batch_relation_traversal_filtered_diff.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Artist {\n    id String @id @default(cuid())\n    ArtistId Int     @unique\n    Name     String\n    Albums   Album[]\n}\n\nmodel Album {\n    id String @id @default(cuid())\n    AlbumId  Int     @unique\n    Title    String\n    ArtistId String\n\n    Artist  Artist  @relation(fields: [ArtistId], references: [id])\n    @@index([ArtistId])\n}\n"), "url": String("file:/mnt/ram/db/singular_batch_relation_traversal_filtered_diff.db")}
Test failed due to an error:
=====
External process error: Server error: Error: Expected object, got object
    at asRecord (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:734:9)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:660:39)
    at async Promise.all (index 0)
    at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:577:25)
    at async _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:679:22)
    at async Promise.all (index 2)
    at async QueryPipeline.run (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:415:11)
    at async MessagePort.<anonymous> (file:///home/viktor/dev/prisma-engines/libs/driver-adapters/executor/dist/qc-test-worker/worker.js:675:16)
=====

thread 'queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff
             at ./tests/queries/batching/select_one_singular.rs:178:5
  28: query_engine_tests::queries::batching::select_one_singular::singular_batch::relation_traversal_filtered_diff::{{closure}}
             at ./tests/queries/batching/select_one_singular.rs:178:22
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 26 (3 tests)

  • writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel
  • writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_single_field_rel
  • writes::ids::relation_pks::single_pk_rel_field::single_pk_rel_field::id_also_1_m_multi_field_rel
1: writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel (3)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
at BetterSQLite3Transaction.executeIO (file:<PATH>:<DEC>:<DEC>)
at BetterSQLite3Transaction.executeRaw (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at file:<PATH>:<DEC>:<DEC>
at Object.runInChildSpan (file:<PATH>:<DEC>:<DEC>)
at #withQueryEvent (file:<PATH>:<DEC>:<DEC>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
at file:<PATH>:<DEC>:<DEC>
at Array.map (<anonymous>)
at _QueryInterpreter.interpretNode (file:<PATH>:<DEC>:<DEC>)
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/compound_pk_rel_cpd_1_m_multi_field_rel.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
  name      String
  age       Int
  child_id  Int
  child_ssn String

  child Child  @relation(fields: [child_id, child_ssn], references: [id, ssn])
  @@id([name, child_id, child_ssn])
}

model Child {
  id Int @id
  ssn     String @unique
  name    String
  parents Parent[]

  @@unique([id, ssn])
}
[2025-04-30T18:29:12Z INFO  tracing::span] diff;
[2025-04-30T18:29:12Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:29:12Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/compound_pk_rel_cpd_1_m_multi_field_rel.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n  name      String\n  age       Int\n  child_id  Int\n  child_ssn String\n\n  child Child  @relation(fields: [child_id, child_ssn], references: [id, ssn])\n  @@id([name, child_id, child_ssn])\n}\n\nmodel Child {\n  id Int @id\n  ssn     String @unique\n  name    String\n  parents Parent[]\n\n  @@unique([id, ssn])\n}"), "url": String("file:/mnt/ram/db/compound_pk_rel_cpd_1_m_multi_field_rel.db")}
Test failed due to an error:
=====
External process error: Server error: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null
    at BetterSQLite3Transaction.executeIO (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:466:51)
    at BetterSQLite3Transaction.executeRaw (file:///home/viktor/dev/prisma/packages/adapter-better-sqlite3/dist/index.mjs:457:24)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:612:34
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:699:30
    at Object.runInChildSpan (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:12:12)
    at #withQueryEvent (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:687:32)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:611:36)
    at file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:606:69
    at Array.map (<anonymous>)
    at _QueryInterpreter.interpretNode (file:///home/viktor/dev/prisma/packages/client-engine-runtime/dist/index.mjs:606:51)
=====

thread 'writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel' panicked at query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13:
💥 Test failed due to an error (see above)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:392:13
   3: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   4: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   5: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
   6: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
   7: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
   8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
   9: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  11: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  12: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  13: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  14: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  15: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  16: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  20: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  22: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  23: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  24: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  25: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  26: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  27: query_engine_tests::writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel
             at ./tests/writes/ids/relation_pks/compound_pk_rel_field.rs:787:5
  28: query_engine_tests::writes::ids::relation_pks::compound_pk_rel_field::compound_pk_rel::cpd_1_m_multi_field_rel::{{closure}}
             at ./tests/writes/ids/relation_pks/compound_pk_rel_field.rs:787:52
  29: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  30: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 27 (2 tests)

  • new::ref_actions::on_delete::set_null::one2many_opt::delete_parent
  • new::ref_actions::on_delete::set_null::one2one_opt::delete_parent
1: new::ref_actions::on_delete::set_null::one2one_opt::delete_parent (2)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-<DEC>
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, r#"query { findManyChild { id parent_id }}"#)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyChild":[{"id":<DEC>,"parent_id":null}]}}
<DEC> │+{"data":{"findManyChild":[{"id":<DEC>,"parent_id":<DEC>}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_delete_parent-<DEC>' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/setnull_onD_1to1_opt_delete_parent.db"
    relationMode = "prisma"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model Parent {
    id Int @id
    child Child?
}

model Child {
    id Int @id
    parent_id Int? @unique
    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: SetNull)
}
[2025-04-30T18:27:58Z INFO  tracing::span] diff;
[2025-04-30T18:27:58Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:27:58Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/setnull_onD_1to1_opt_delete_parent.db\"\n    relationMode = \"prisma\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel Parent {\n    id Int @id\n    child Child?\n}\n\nmodel Child {\n    id Int @id\n    parent_id Int? @unique\n    parent    Parent? @relation(fields: [parent_id], references: [id], onDelete: SetNull)\n}"), "url": String("file:/mnt/ram/db/setnull_onD_1to1_opt_delete_parent.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_delete_parent-3
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_delete/set_null.rs:38
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(&runner, r#"query { findManyChild { id parent_id }}"#)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyChild":[{"id":1,"parent_id":null}]}}
          0 +{"data":{"findManyChild":[{"id":1,"parent_id":1}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'new::ref_actions::on_delete::set_null::one2one_opt::delete_parent' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_delete_parent-3' failed in line 38
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::new::ref_actions::on_delete::set_null::one2one_opt::run_delete_parent::{{closure}}
             at ./tests/new/ref_actions/on_delete/set_null.rs:38:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::new::ref_actions::on_delete::set_null::one2one_opt::delete_parent
             at ./tests/new/ref_actions/on_delete/set_null.rs:26:5
  39: query_engine_tests::new::ref_actions::on_delete::set_null::one2one_opt::delete_parent::{{closure}}
             at ./tests/new/ref_actions/on_delete/set_null.rs:26:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 28 (2 tests)

  • queries::order_and_pagination::nested_multi_order_pagination::paging_one2m_stable_order::cursor_child_3
  • queries::order_and_pagination::nested_multi_order_pagination::paging_one2m_unstable_order::cursor_child_3
1: queries::order_and_pagination::nested_multi_order_pagination::paging_one2m_stable_order::cursor_child_3 (2)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_cursor_child_3
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"query {
findManyTestModel {
id
related(cursor: { id: <DEC> }, orderBy: [{ fieldA: desc }, { fieldB: asc }, { fieldC: asc }, { fieldD: desc }]) {
id
}
}
}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyTestModel":[{"id":<DEC>,"related":[]},{"id":<DEC>,"related":[{"id":<DEC>},{"id":<DEC>}]},{"id":<DEC>,"related":[]}]}}
<DEC> │+{"data":{"findManyTestModel":[{"id":<DEC>,"related":[{"id":<DEC>},{"id":<DEC>}]},{"id":<DEC>,"related":[{"id":<DEC>},{"id":<DEC>}]},{"id":<DEC>,"related":[{"id":<DEC>}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_cursor_child_3' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/paging_one2m_stable_order_cursor_child_3.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model TestModel {
  id Int @id
  related RelatedTestModel[]
}

model RelatedTestModel {
  id Int @id
  fieldA String
  fieldB String
  fieldC String
  fieldD String

  parent_id Int
  parent TestModel @relation(fields: [parent_id], references: [id])

  @@unique([fieldA, fieldB, fieldC, fieldD])
}

[2025-04-30T18:28:47Z INFO  tracing::span] diff;
[2025-04-30T18:28:47Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:47Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/paging_one2m_stable_order_cursor_child_3.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel TestModel {\n  id Int @id\n  related RelatedTestModel[]\n}\n\nmodel RelatedTestModel {\n  id Int @id\n  fieldA String\n  fieldB String\n  fieldC String\n  fieldD String\n\n  parent_id Int\n  parent TestModel @relation(fields: [parent_id], references: [id])\n\n  @@unique([fieldA, fieldB, fieldC, fieldD])\n}\n"), "url": String("file:/mnt/ram/db/paging_one2m_stable_order_cursor_child_3.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_cursor_child_3
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/nested_multi_order_pagination.rs:101
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
    &runner,
    r#"query {
            findManyTestModel {
              id
              related(cursor: { id: 3 }, orderBy: [{ fieldA: desc }, { fieldB: asc }, { fieldC: asc }, { fieldD: desc }]) {
                id
              }
            }
          }"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyTestModel":[{"id":1,"related":[]},{"id":2,"related":[{"id":3},{"id":4}]},{"id":3,"related":[]}]}}
          0 +{"data":{"findManyTestModel":[{"id":1,"related":[{"id":2},{"id":1}]},{"id":2,"related":[{"id":3},{"id":4}]},{"id":3,"related":[{"id":6}]}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::order_and_pagination::nested_multi_order_pagination::paging_one2m_stable_order::cursor_child_3' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_cursor_child_3' failed in line 101
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::order_and_pagination::nested_multi_order_pagination::paging_one2m_stable_order::run_cursor_child_3::{{closure}}
             at ./tests/queries/order_and_pagination/nested_multi_order_pagination.rs:101:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::order_and_pagination::nested_multi_order_pagination::paging_one2m_stable_order::cursor_child_3
             at ./tests/queries/order_and_pagination/nested_multi_order_pagination.rs:89:5
  39: query_engine_tests::queries::order_and_pagination::nested_multi_order_pagination::paging_one2m_stable_order::cursor_child_3::{{closure}}
             at ./tests/queries/order_and_pagination/nested_multi_order_pagination.rs:89:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 29 (2 tests)

  • queries::order_and_pagination::order_by_dependent::order_by_dependent::circular_related_record_asc
  • queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_related_record_asc
1: queries::order_and_pagination::order_by_dependent::order_by_dependent::circular_related_record_asc (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_circular_related_record_asc
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"{
findManyModelA(orderBy: { b: { c: { a: { id: asc }}}}) {
id
b {
c {
a {
id
}
}
}
}
}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyModelA":[{"id":<DEC>,"b":{"c":{"a":{"id":<DEC>}}}},{"id":<DEC>,"b":{"c":{"a":{"id":<DEC>}}}}]}}
<DEC> │+{"data":{"findManyModelA":[{"id":<DEC>,"b":{"c":{"a":{"id":<DEC>}}}},{"id":<DEC>,"b":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_circular_related_record_asc' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/order_by_dependent_circular_related_record_asc.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model ModelA {
  id Int @id
  b_id Int? @unique
  b    ModelB? @relation(fields: [b_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
  c    ModelC?
}

model ModelB {
  id Int @id
  a  ModelA?

  c_id Int? @unique
  c    ModelC? @relation(fields: [c_id], references: [id])
}

model ModelC {
  id Int @id
  b    ModelB?
  a_id Int? @unique
  a    ModelA? @relation(fields: [a_id], references: [id])
}
[2025-04-30T18:28:58Z INFO  tracing::span] diff;
[2025-04-30T18:28:58Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:58Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/order_by_dependent_circular_related_record_asc.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel ModelA {\n  id Int @id\n  b_id Int? @unique\n  b    ModelB? @relation(fields: [b_id], references: [id], onDelete: NoAction, onUpdate: NoAction)\n  c    ModelC?\n}\n\nmodel ModelB {\n  id Int @id\n  a  ModelA?\n\n  c_id Int? @unique\n  c    ModelC? @relation(fields: [c_id], references: [id])\n}\n\nmodel ModelC {\n  id Int @id\n  b    ModelB?\n  a_id Int? @unique\n  a    ModelA? @relation(fields: [a_id], references: [id])\n}"), "url": String("file:/mnt/ram/db/order_by_dependent_circular_related_record_asc.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_circular_related_record_asc
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/order_by_dependent.rs:180
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
    &runner,
    r#"{
            findManyModelA(orderBy: { b: { c: { a: { id: asc }}}}) {
              id
              b {
                c {
                  a {
                    id
                  }
                }
              }
            }
          }"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyModelA":[{"id":1,"b":{"c":{"a":{"id":1}}}},{"id":2,"b":{"c":{"a":{"id":2}}}}]}}
          0 +{"data":{"findManyModelA":[{"id":1,"b":{"c":{"a":{"id":1}}}},{"id":2,"b":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::order_and_pagination::order_by_dependent::order_by_dependent::circular_related_record_asc' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_circular_related_record_asc' failed in line 180
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::order_and_pagination::order_by_dependent::order_by_dependent::run_circular_related_record_asc::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent.rs:180:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::order_and_pagination::order_by_dependent::order_by_dependent::circular_related_record_asc
             at ./tests/queries/order_and_pagination/order_by_dependent.rs:174:5
  39: query_engine_tests::queries::order_and_pagination::order_by_dependent::order_by_dependent::circular_related_record_asc::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent.rs:174:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_related_record_asc (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_circular_related_record_asc
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"{
findManyModelA(orderBy: { b: { c: { a: { id: asc }}}}, cursor: { id: <DEC> }, take: <DEC>) {
id
b {
c {
a {
id
}
}
}
}
}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> -{"data":{"findManyModelA":[{"id":<DEC>,"b":{"c":{"a":{"id":<DEC>}}}},{"id":<DEC>,"b":{"c":{"a":{"id":<DEC>}}}}]}}
<DEC> │+{"data":{"findManyModelA":[{"id":<DEC>,"b":{"c":{"a":{"id":<DEC>}}}},{"id":<DEC>,"b":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_circular_related_record_asc' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/order_by_dependent_pag_circular_related_record_asc.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model ModelA {
  id Int @id
  b_id Int? @unique
  b    ModelB? @relation(fields: [b_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
  c    ModelC?
}

model ModelB {
  id Int @id
  a  ModelA?

  c_id Int? @unique
  c    ModelC? @relation(fields: [c_id], references: [id])
}

model ModelC {
  id Int @id
  b    ModelB?
  a_id Int? @unique
  a    ModelA? @relation(fields: [a_id], references: [id])
}
[2025-04-30T18:29:02Z INFO  tracing::span] diff;
[2025-04-30T18:29:02Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:29:02Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/order_by_dependent_pag_circular_related_record_asc.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel ModelA {\n  id Int @id\n  b_id Int? @unique\n  b    ModelB? @relation(fields: [b_id], references: [id], onDelete: NoAction, onUpdate: NoAction)\n  c    ModelC?\n}\n\nmodel ModelB {\n  id Int @id\n  a  ModelA?\n\n  c_id Int? @unique\n  c    ModelC? @relation(fields: [c_id], references: [id])\n}\n\nmodel ModelC {\n  id Int @id\n  b    ModelB?\n  a_id Int? @unique\n  a    ModelA? @relation(fields: [a_id], references: [id])\n}"), "url": String("file:/mnt/ram/db/order_by_dependent_pag_circular_related_record_asc.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_circular_related_record_asc
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/order_by_dependent_pagination.rs:191
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
    &runner,
    r#"{
            findManyModelA(orderBy: { b: { c: { a: { id: asc }}}}, cursor: { id: 1 }, take: 2) {
              id
              b {
                c {
                  a {
                    id
                  }
                }
              }
            }
          }"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyModelA":[{"id":1,"b":{"c":{"a":{"id":1}}}},{"id":2,"b":{"c":{"a":{"id":2}}}}]}}
          0 +{"data":{"findManyModelA":[{"id":1,"b":{"c":{"a":{"id":1}}}},{"id":2,"b":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_related_record_asc' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_circular_related_record_asc' failed in line 191
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::run_circular_related_record_asc::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:191:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_related_record_asc
             at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:185:5
  39: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::circular_related_record_asc::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:185:22
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Cluster 30 (2 tests)

  • queries::order_and_pagination::order_by_dependent::order_by_dependent::multiple_rel_same_model_order_by
  • queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::multiple_rel_same_model_order_by
1: queries::order_and_pagination::order_by_dependent::order_by_dependent::multiple_rel_same_model_order_by (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_multiple_rel_same_model_order_by
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"{
findManyModelA(orderBy: [{ b1: { id: asc } }, { b2: { id: desc } }]) {
id
b1 { id }
b2 { id }
}
}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> │-{"data":{"findManyModelA":[{"id":<DEC>,"b1":{"id":<DEC>},"b2":{"id":<DEC>}},{"id":<DEC>,"b1":{"id":<DEC>},"b2":{"id":<DEC>}},{"id":<DEC>,"b1":{"id":<DEC>},"b2":{"id":<DEC>}}]}}
<DEC> │+{"data":{"findManyModelA":[{"id":<DEC>,"b1":{"id":<DEC>},"b2":null},{"id":<DEC>,"b1":{"id":<DEC>},"b2":{"id":<DEC>}},{"id":<DEC>,"b1":null,"b2":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_multiple_rel_same_model_order_by' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/order_by_dependent_multiple_rel_same_model_order_by.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model ModelA {
  id Int @id

  b1_id Int?
  b1    ModelB? @relation(fields: [b1_id], references: [id], name: "1", onDelete: NoAction, onUpdate: NoAction)

  b2_id Int?
  b2    ModelB? @relation(fields: [b2_id], references: [id], name: "2")
}

model ModelB {
  id Int @id

  a1 ModelA[] @relation("1")
  a2 ModelA[] @relation("2")
}
[2025-04-30T18:29:02Z INFO  tracing::span] diff;
[2025-04-30T18:29:02Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:29:02Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/order_by_dependent_multiple_rel_same_model_order_by.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel ModelA {\n  id Int @id\n\n  b1_id Int?\n  b1    ModelB? @relation(fields: [b1_id], references: [id], name: \"1\", onDelete: NoAction, onUpdate: NoAction)\n\n  b2_id Int?\n  b2    ModelB? @relation(fields: [b2_id], references: [id], name: \"2\")\n}\n\nmodel ModelB {\n  id Int @id\n\n  a1 ModelA[] @relation(\"1\")\n  a2 ModelA[] @relation(\"2\")\n}"), "url": String("file:/mnt/ram/db/order_by_dependent_multiple_rel_same_model_order_by.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_multiple_rel_same_model_order_by
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/order_by_dependent.rs:337
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
    &runner,
    r#"{
            findManyModelA(orderBy: [{ b1: { id: asc } }, { b2: { id: desc } }]) {
              id
              b1 { id }
              b2 { id }
            }
          }"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyModelA":[{"id":1,"b1":{"id":1},"b2":{"id":10}},{"id":2,"b1":{"id":1},"b2":{"id":5}},{"id":3,"b1":{"id":2},"b2":{"id":7}}]}}
          0 +{"data":{"findManyModelA":[{"id":1,"b1":{"id":1},"b2":null},{"id":2,"b1":{"id":1},"b2":{"id":5}},{"id":3,"b1":null,"b2":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::order_and_pagination::order_by_dependent::order_by_dependent::multiple_rel_same_model_order_by' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_multiple_rel_same_model_order_by' failed in line 337
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::order_and_pagination::order_by_dependent::order_by_dependent::run_multiple_rel_same_model_order_by::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent.rs:337:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::order_and_pagination::order_by_dependent::order_by_dependent::multiple_rel_same_model_order_by
             at ./tests/queries/order_and_pagination/order_by_dependent.rs:321:5
  39: query_engine_tests::queries::order_and_pagination::order_by_dependent::order_by_dependent::multiple_rel_same_model_order_by::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent.rs:321:55
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2: queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::multiple_rel_same_model_order_by (1)
[<TIMESTAMP> INFO tracing::span] diff;
[<TIMESTAMP> INFO sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_multiple_rel_same_model_order_by
Source: query-engine<PATH>:<DEC>
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
&runner,
r#"{
findManyModelA(orderBy: [{ b1: { id: asc } }, { b2: { id: desc } }], cursor: { id: <DEC> }, take: <DEC>) {
id
b1 { id }
b2 { id }
}
}"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
<DEC> -{"data":{"findManyModelA":[{"id":<DEC>,"b1":{"id":<DEC>},"b2":{"id":<DEC>}},{"id":<DEC>,"b1":{"id":<DEC>},"b2":{"id":<DEC>}},{"id":<DEC>,"b1":{"id":<DEC>},"b2":{"id":<DEC>}}]}}
<DEC> │+{"data":{"findManyModelA":[{"id":<DEC>,"b1":{"id":<DEC>},"b2":null},{"id":<DEC>,"b1":{"id":<DEC>},"b2":{"id":<DEC>}},{"id":<DEC>,"b1":null,"b2":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
snapshot assertion for 'run_multiple_rel_same_model_order_by' failed in line <DEC>
Full log
******************************
* Test run information:
* Connector: sqlite better-sqlite3
* CI? false
* External test executor: QueryCompiler
* Driver adapter: better-sqlite3
* Driver adapter config: 
******************************
Used datamodel:
 datasource test {
    provider = "sqlite"
    url = "file:/mnt/ram/db/order_by_dependent_pag_multiple_rel_same_model_order_by.db"
    relationMode = "foreignKeys"
}


generator client {
    provider = "prisma-client-js"
    previewFeatures = ["deno", "driverAdapters", "metrics", "multiSchema", "nativeDistinct", "postgresqlExtensions", "queryCompiler", "relationJoins", "strictUndefinedChecks", "views", "reactNative", "typedSql"]
}


model ModelA {
  id Int @id

  b1_id Int?
  b1    ModelB? @relation(fields: [b1_id], references: [id], name: "1", onDelete: NoAction, onUpdate: NoAction)

  b2_id Int?
  b2    ModelB? @relation(fields: [b2_id], references: [id], name: "2")
}

model ModelB {
  id Int @id

  a1 ModelA[] @relation("1")
  a2 ModelA[] @relation("2")
}
[2025-04-30T18:28:46Z INFO  tracing::span] diff;
[2025-04-30T18:28:46Z INFO  sql_schema_connector::apply_migration] render_script; diagnostics=DestructiveChangeDiagnostics { warnings: [], unexecutable_migrations: [] }
[2025-04-30T18:28:46Z INFO  query_tests_setup::connector_tag::js::external_process] request; method="initializeSchema" params=Object {"schemaId": Number(0), "schema": String("datasource test {\n    provider = \"sqlite\"\n    url = \"file:/mnt/ram/db/order_by_dependent_pag_multiple_rel_same_model_order_by.db\"\n    relationMode = \"foreignKeys\"\n}\n\n\ngenerator client {\n    provider = \"prisma-client-js\"\n    previewFeatures = [\"deno\", \"driverAdapters\", \"metrics\", \"multiSchema\", \"nativeDistinct\", \"postgresqlExtensions\", \"queryCompiler\", \"relationJoins\", \"strictUndefinedChecks\", \"views\", \"reactNative\", \"typedSql\"]\n}\n\n\nmodel ModelA {\n  id Int @id\n\n  b1_id Int?\n  b1    ModelB? @relation(fields: [b1_id], references: [id], name: \"1\", onDelete: NoAction, onUpdate: NoAction)\n\n  b2_id Int?\n  b2    ModelB? @relation(fields: [b2_id], references: [id], name: \"2\")\n}\n\nmodel ModelB {\n  id Int @id\n\n  a1 ModelA[] @relation(\"1\")\n  a2 ModelA[] @relation(\"2\")\n}"), "url": String("file:/mnt/ram/db/order_by_dependent_pag_multiple_rel_same_model_order_by.db")}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_multiple_rel_same_model_order_by
Source: query-engine/connector-test-kit-rs/query-engine-tests/tests/queries/order_and_pagination/order_by_dependent_pagination.rs:342
────────────────────────────────────────────────────────────────────────────────
Expression: run_query!(
    &runner,
    r#"{
            findManyModelA(orderBy: [{ b1: { id: asc } }, { b2: { id: desc } }], cursor: { id: 1 }, take: 3) {
              id
              b1 { id }
              b2 { id }
            }
          }"#
)
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    0       -{"data":{"findManyModelA":[{"id":1,"b1":{"id":1},"b2":{"id":10}},{"id":2,"b1":{"id":1},"b2":{"id":5}},{"id":3,"b1":{"id":2},"b2":{"id":7}}]}}
          0 +{"data":{"findManyModelA":[{"id":1,"b1":{"id":1},"b2":null},{"id":2,"b1":{"id":1},"b2":{"id":5}},{"id":3,"b1":null,"b2":null}]}}
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::multiple_rel_same_model_order_by' panicked at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13:
snapshot assertion for 'run_multiple_rel_same_model_order_by' failed in line 342
stack backtrace:
   0: rust_begin_unwind
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5
   1: core::panicking::panic_fmt
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14
   2: insta::runtime::SnapshotAssertionContext::finalize
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:680:13
   3: insta::runtime::assert_snapshot
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.41.1/src/runtime.rs:849:9
   4: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::run_multiple_rel_same_model_order_by::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:342:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
   6: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.28/src/future/either.rs:110:33
   7: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:47
   8: tracing_core::dispatcher::with_default
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.33/src/dispatcher.rs:263:5
   9: <tracing_futures::WithDispatch<T> as core::future::future::Future>::poll
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-futures-0.2.5/src/lib.rs:455:9
  10: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll::{{closure}}
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:67
  11: metrics::recorder::with_local_recorder
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/metrics-0.23.0/src/recorder/mod.rs:115:5
  12: <prisma_metrics::instrument::WithRecorder<T> as core::future::future::Future>::poll
             at /home/viktor/dev/prisma-engines/libs/metrics/src/instrument.rs:77:20
  13: query_tests_setup::run_connector_test_impl::{{closure}}
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:385:14
  14: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/future.rs:124:9
  16: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:54
  17: tokio::task::coop::with_budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5
  18: tokio::task::coop::budget
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5
  19: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25
  20: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:36
  22: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68
  23: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9
  24: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:26
  25: std::thread::local::LocalKey<T>::try_with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:310:12
  26: std::thread::local::LocalKey<T>::with
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:274:15
  27: tokio::runtime::context::set_scheduler
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:9
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27
  29: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:19
  30: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:28
  31: tokio::runtime::context::runtime::enter_runtime
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16
  32: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9
  33: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:47
  34: tokio::runtime::runtime::Runtime::block_on
             at /home/viktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:340:13
  35: query_tests_setup::run_with_tokio
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:61:5
  36: query_tests_setup::run_connector_test_impl
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:343:5
  37: query_tests_setup::run_connector_test
             at /home/viktor/dev/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src/lib.rs:284:5
  38: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::multiple_rel_same_model_order_by
             at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:326:5
  39: query_engine_tests::queries::order_and_pagination::order_by_dependent_pagination::order_by_dependent_pag::multiple_rel_same_model_order_by::{{closure}}
             at ./tests/queries/order_and_pagination/order_by_dependent_pagination.rs:326:55
  40: core::ops::function::FnOnce::call_once
             at /home/viktor/.rustup/toolchains/1.86.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment