sql: fix name resolution in HAVING if projection contains a param
Summary
- sql: fix name resolution in HAVING if projection contains a param
Repro:
box.cfg {}
box.ctl.wait_rw()
box.execute([[
WITH q(a) AS (VALUES (1))
SELECT avg(a), ? as c1
FROM q
HAVING 1 = AVG(a)
]], {100})
Output:
...
Please file a bug at https://github.com/tarantool/tarantool/issues
Attempting backtrace... Note: since the server has already crashed,
this may fail as well
#1 0x609a4705960a in luaT_pushdecimal+33530
#2 0x70f7f904c1d0 in __sigaction+80
#3 0x609a47230e15 in ibuf_reserve_slow+383333
#4 0x609a46fd8e37 in box_decimal_mp_decode_data+363175
#5 0x609a46fdcca1 in box_decimal_mp_decode_data+379153
#6 0x609a46f80ce7 in box_decimal_mp_decode_data+2391
#7 0x609a4701f167 in luaT_pushtuple+147927
#8 0x609a4724a283 in ibuf_reserve_slow+486867
#9 0x609a47092437 in lua_pcall+119
#10 0x609a4702b4a3 in tarantool_lua_slab_cache+37907
#11 0x609a4702d2a2 in luaL_setcdatagc+3810
#12 0x609a46e6ee40 in ??+0
#13 0x609a47061117 in fiber_self+1591
#14 0x609a471d9129 in ibuf_reserve_slow+23673
NO_DOC=internal NO_TEST=internal NO_CHANGELOG=internal
Close #... Docs follow-up: not necessary / new issue
Edited by Dmitry Ivanov
Merge request reports
Activity
Filter activity
Please register or sign in to reply