select $18446744073709551616 panics
picodata> pico.sql([[ select $18446744073709551616 ]], {1})
2024-12-17 19:42:15.369 [397928] main/104/interactive C>
panicked at sbroad/sbroad-core/src/frontend/sql.rs:1507:30:
usize param expected under PgParameter: ParseIntError { kind: PosOverflow }
backtrace:
0: picodata_plugin::internal::set_panic_hook::{{closure}}
at ./picodata-plugin/src/internal/mod.rs:52:25
1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
2: std::panicking::rust_panic_with_hook
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
3: std::panicking::begin_panic_handler::{{closure}}
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
4: std::sys::backtrace::__rust_end_short_backtrace
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
5: rust_begin_unwind
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
6: core::panicking::panic_fmt
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
7: core::result::unwrap_failed
at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
8: core::result::Result<T,E>::expect
at /home/max/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1061:23
9: sbroad::frontend::sql::ParameterSource::get_param_index
at ./sbroad/sbroad-core/src/frontend/sql.rs:1504:41
10: sbroad::frontend::sql::parse_param
at ./sbroad/sbroad-core/src/frontend/sql.rs:1536:23
11: sbroad::frontend::sql::parse_expr_pratt::{{closure}}
at ./sbroad/sbroad-core/src/frontend/sql.rs:2451:35
12: pest::pratt_parser::PrattParserMap<R,F,T>::nud
at /home/max/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pest-2.7.14/src/pratt_parser.rs:345:21
13: pest::pratt_parser::PrattParserMap<R,F,T>::expr
at /home/max/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pest-2.7.14/src/pratt_parser.rs:324:23
14: pest::pratt_parser::PrattParserMap<R,F,T>::parse
at /home/max/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pest-2.7.14/src/pratt_parser.rs:320:9
15: sbroad::frontend::sql::parse_expr_pratt
at ./sbroad/sbroad-core/src/frontend/sql.rs:2431:5
16: sbroad::frontend::sql::parse_expr_pratt::{{closure}}
at ./sbroad/sbroad-core/src/frontend/sql.rs:2435:21
17: pest::pratt_parser::PrattParserMap<R,F,T>::nud
at /home/max/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pest-2.7.14/src/pratt_parser.rs:345:21
18: pest::pratt_parser::PrattParserMap<R,F,T>::expr
at /home/max/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pest-2.7.14/src/pratt_parser.rs:324:23
19: pest::pratt_parser::PrattParserMap<R,F,T>::parse
at /home/max/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pest-2.7.14/src/pratt_parser.rs:320:9
20: sbroad::frontend::sql::parse_expr_pratt
at ./sbroad/sbroad-core/src/frontend/sql.rs:2431:5
21: sbroad::frontend::sql::parse_expr
at ./sbroad/sbroad-core/src/frontend/sql.rs:2944:22
22: sbroad::frontend::sql::<impl sbroad::frontend::sql::ast::AbstractSyntaxTree>::parse_select_without_scan
at ./sbroad/sbroad-core/src/frontend/sql.rs:3516:25
23: sbroad::frontend::sql::<impl sbroad::frontend::sql::ast::AbstractSyntaxTree>::resolve_metadata
at ./sbroad/sbroad-core/src/frontend/sql.rs:3917:25
24: sbroad::frontend::sql::<impl sbroad::frontend::Ast for sbroad::frontend::sql::ast::AbstractSyntaxTree>::transform_into_plan
at ./sbroad/sbroad-core/src/frontend/sql.rs:4691:9
25: sbroad::executor::Query<C>::with_options
at ./sbroad/sbroad-core/src/executor.rs:132:20
26: picodata::sql::sql_dispatch::{{closure}}
at ./src/sql.rs:548:9
27: tarantool::session::with_su
at ./tarantool/tarantool/src/session.rs:172:8
28: picodata::sql::sql_dispatch
at ./src/sql.rs:544:17
29: picodata::sql::proc_sql_dispatch::__tp_inner
at ./src/sql.rs:537:5
30: proc_sql_dispatch
at ./src/sql.rs:535:1
31: module_func_call
at ./tarantool-sys/src/box/module_cache.c:240:11
32: func_call
at ./tarantool-sys/src/box/func.h:122:9
33: lbox_func_call
at ./tarantool-sys/src/box/lua/call.c:973:6
34: lbox_func_call
at ./tarantool-sys/src/box/lua/call.c:944:1
35: lj_BC_FUNCC
at ./target/debug/build/tarantool-sys/static/tarantool-prefix/src/tarantool-build/third_party/luajit/src/buildvm_x86.dasc:811
36: lua_pcall
at ./tarantool-sys/third_party/luajit/src/lj_api.c:1172:12
37: luaT_call
at ./tarantool-sys/src/lua/utils.c:619:6
38: lua_main
at ./tarantool-sys/src/lua/init.c:1030:11
39: run_script_f
at ./tarantool-sys/src/lua/init.c:1194:7
40: fiber_cxx_invoke
at ./tarantool-sys/src/lib/core/fiber.h:1283:11
41: fiber_loop
at ./tarantool-sys/src/lib/core/fiber.c:1085:18
42: coro_init
at ./tarantool-sys/third_party/coro/coro.c:108:3
aborting due to panic