Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing describer on MySQL with empty view definition #6082

Closed
tomhoule opened this issue Mar 12, 2021 · 1 comment
Closed

Failing describer on MySQL with empty view definition #6082

tomhoule opened this issue Mar 12, 2021 · 1 comment
Assignees
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: introspection
Milestone

Comments

@tomhoule
Copy link
Contributor

Command: prisma introspect
Version: 2.18.0
Binary Version: da6fafb57b24e0b61ca20960c64e2d41f9e8cff1
Report: https://prisma-errors.netlify.app/report/13084
OS: x64 darwin 20.3.0

JS Stacktrace:

Error: [libs/sql-schema-describer/src/getters.rs:21:14] called `Result::unwrap()` on an `Err` value: "Getting definition from Resultrow ResultRow { columns: [\"name\", \"definition\"], values: [Text(Some(\"link\")), Text(None)] } as String failed"
    at ChildProcess.<anonymous> (/Users/mike/Development/navdata/node_modules/prisma/build/index.js:39246:28)
    at ChildProcess.emit (node:events:378:20)
    at ChildProcess.EventEmitter.emit (node:domain:470:12)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

Rust Stacktrace:

   0: backtrace::backtrace::trace
   1: backtrace::capture::Backtrace::new
   2: user_facing_errors::Error::new_in_panic_hook
   3: user_facing_errors::panic_hook::set_panic_hook::{{closure}}
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic_handler::{{closure}}
   6: std::sys_common::backtrace::__rust_end_short_backtrace
   7: _rust_begin_unwind
   8: core::panicking::panic_fmt
   9: core::result::unwrap_failed
  10: <quaint::connector::result_set::result_row::ResultRow as sql_schema_describer::getters::Getter>::get_expect_string
  11: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  12: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
  13: <sql_schema_describer::mysql::SqlSchemaDescriber as sql_schema_describer::SqlSchemaDescriberBackend>::describe::__describe::{{closure}}::{{closure}}
  14: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
  15: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  16: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  17: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  18: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  19: <futures_util::compat::compat03as01::Compat<Fut> as futures::future::Future>::poll
  20: <futures::future::either::Either<A,B> as futures::future::Future>::poll
  21: <futures::future::then::Then<A,B,F> as futures::future::Future>::poll
  22: <futures::future::either::Either<A,B> as futures::future::Future>::poll
  23: futures::task_impl::Spawn<T>::enter::{{closure}}
  24: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  25: introspection_engine::main
  26: std::sys_common::backtrace::__rust_begin_short_backtrace
  27: std::rt::lang_start::{{closure}}
  28: std::rt::lang_start_internal
  29: std::rt::lang_start

@tomhoule tomhoule added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. process/candidate team/schema Issue for team Schema. labels Mar 12, 2021
@albertoperdomo albertoperdomo added this to the 2.20.0 milestone Mar 17, 2021
@tomhoule
Copy link
Contributor Author

Due to work on MSSQL, this has already been made optional, so this should be fixed as of 2.19.0.

see https://github.com/prisma/prisma-engines/blob/040b795d68feaf99820baa05c447c8b29d7b3d77/libs/sql-schema-describer/src/mysql.rs#L131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: introspection
Projects
None yet
Development

No branches or pull requests

4 participants