Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL)
-
None
Description
CREATE TABLE t1 (i INT); |
INSERT INTO t1 VALUES (1),(2); |
SELECT Nth_value(i,1) OVER() FROM t1 |
UNION ALL |
( SELECT Nth_value(i,2) OVER() FROM t1 LIMIT 0 ) |
;
|
10.2 bc75c57cfc18be64f167d91c431076f581b0382b |
#3 <signal handler called>
|
#4 0x00007f66354d542f in st_select_lex::set_explain_type (this=0x7f661c012f88, on_the_fly=true) at /data/src/10.2/sql/sql_lex.cc:4401
|
#5 0x00007f66355622d0 in JOIN::save_explain_data_intern (this=0x7f661c014dc0, output=0x7f661c017510, need_tmp_table_arg=true, need_order_arg=false, distinct_arg=false, message=0x7f6635f55d8e "Impossible WHERE") at /data/src/10.2/sql/sql_select.cc:24668
|
#6 0x00007f663552b7bd in JOIN::save_explain_data (this=0x7f661c014dc0, output=0x7f661c017510, can_overwrite=false, need_tmp_table=true, need_order=false, distinct=false) at /data/src/10.2/sql/sql_select.cc:3240
|
#7 0x00007f6635523cae in JOIN::optimize (this=0x7f661c014dc0) at /data/src/10.2/sql/sql_select.cc:1093
|
#8 0x00007f66355c8962 in st_select_lex_unit::optimize (this=0x7f661c0045e8) at /data/src/10.2/sql/sql_union.cc:906
|
#9 0x00007f66355c8b99 in st_select_lex_unit::exec (this=0x7f661c0045e8) at /data/src/10.2/sql/sql_union.cc:940
|
#10 0x00007f66355c5aba in mysql_union (thd=0x7f661c000b00, lex=0x7f661c004520, result=0x7f661c014390, unit=0x7f661c0045e8, setup_tables_done_option=0) at /data/src/10.2/sql/sql_union.cc:41
|
#11 0x00007f6635521430 in handle_select (thd=0x7f661c000b00, lex=0x7f661c004520, result=0x7f661c014390, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:351
|
#12 0x00007f66354ed3c8 in execute_sqlcom_select (thd=0x7f661c000b00, all_tables=0x7f661c012960) at /data/src/10.2/sql/sql_parse.cc:6443
|
#13 0x00007f66354e3407 in mysql_execute_command (thd=0x7f661c000b00) at /data/src/10.2/sql/sql_parse.cc:3458
|
#14 0x00007f66354f0d88 in mysql_parse (thd=0x7f661c000b00, rawbuf=0x7f661c012378 "SELECT Nth_value(i,1) OVER() FROM t1 \nUNION ALL \n( SELECT Nth_value(i,2) OVER() FROM t1 LIMIT 0 )", length=97, parser_state=0x7f662d0da200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7879
|
#15 0x00007f66354dee34 in dispatch_command (command=COM_QUERY, thd=0x7f661c000b00, packet=0x7f661c168011 "SELECT Nth_value(i,1) OVER() FROM t1 \nUNION ALL \n( SELECT Nth_value(i,2) OVER() FROM t1 LIMIT 0 )\n", packet_length=98, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1817
|
#16 0x00007f66354dd775 in do_command (thd=0x7f661c000b00) at /data/src/10.2/sql/sql_parse.cc:1362
|
#17 0x00007f66356294e7 in do_handle_one_connection (connect=0x7f66383f6760) at /data/src/10.2/sql/sql_connect.cc:1354
|
#18 0x00007f6635629274 in handle_one_connection (arg=0x7f66383f6760) at /data/src/10.2/sql/sql_connect.cc:1260
|
#19 0x00007f6635970922 in pfs_spawn_thread (arg=0x7f6638498f40) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#20 0x00007f6634b00064 in start_thread (arg=0x7f662d0db700) at pthread_create.c:309
|
#21 0x00007f6632ce562d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
|