2146551 - Dense_Rank() fails in dfo_OrderBy::ValidateLocalInternalConsistency - SAP IQ | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2146551 - Dense_Rank() fails in dfo_OrderBy::ValidateLocalInternalConsistency - SAP IQ

Symptom

Query with  Dense_Rank() function generates a non-fatail stack trace at dflib/dfo_cOrderBy.cxx in the function dfo_OrderBy::ValidateLocalInternalConsistency.

In the query plan, there are tens of Leaf (Shadow) nodes.

Excerpt of the stack trace

I. 03/16 13:38:55. 0000224187     ********************************************************
I. 03/16 13:38:55. 0000224187     **
I. 03/16 13:38:55. 0000224187     **       Non-Fatal IQ Internal Error Detected
I. 03/16 13:38:55. 0000224187     **       at dflib/dfo_cOrderBy.cxx:370  on thread 2590435072 (TID 23)
I. 03/16 13:38:55. 0000224187     **       Error detected at DFO #22 Order By (Per-Work-Unit) (shadow 1 of #07)
I. 03/16 13:38:55. 0000224187     **
I. 03/16 13:38:55. 0000224187     **       Please report this to Sybase IQ support
I. 03/16 13:38:55. 0000224187     **       with the following diagnostic information,
I. 03/16 13:38:55. 0000224187     **       and, if possible, with the user's command.
I. 03/16 13:38:55. 0000224187     **
I. 03/16 13:38:55. 0000224187     **  Error from IQ connection:  SA connHandle: 1978  SA connID: 69  IQ connID: 0000224187  User: user
I. 03/16 13:38:55. 0000224187     **  Time of error:  2015-03-16 13:38:55
I. 03/16 13:38:55. 0000224187     **  IQ Version:  Sybase IQ/16.0.0/150227/P/sp04.10
I. 03/16 13:38:55. 0000224187     **  OS info:  IQ built on: Enterprise Linux64 - x86_64 - 2.6.18-194.el5,  Executed on: Linux/hostname.company.local/2.6.32-431.el6.x86_64/#1 SMP Sun Nov 10 22:19:54 EST 2013/x86_64
I. 03/16 13:38:55. 0000224187     **  Command status when error occured:  COMMAND ACTIVE
I. 03/16 13:38:55. 0000224187     **  Command text: 
I. 03/16 13:38:55. 0000224187
I. 03/16 13:38:55. 0000224187
===== Thread Number  2590435072  (IQ connID: 0000224187) =====
I. 03/16 13:38:55. 0000224187 pc: 0x7f010186f526 pcstkwalk(stk_trace*, int, db_log*, hos_fd*)+0x36
I. 03/16 13:38:55. 0000224187 pc: 0x7f010186f791 ucstkgentrace(int, int)+0x121
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101870ee3 StackTraceForThisThread(char const*, int, char const*, char const*, char const*)+0x313
I. 03/16 13:38:55. 0000224187 pc: 0x7f01011636ad df_Exception::df_Exception(char const*, int, df_Exception::df_ErrorCode, char const*, char const*, dfo const*, df_Evaluable const*)+0x5fd
I. 03/16 13:38:55. 0000224187 pc: 0x7f01011652b5 df_Exception::ThrowException(char const*, int, df_Exception::df_ErrorCode, char const*, char const*, dfo const*, df_Evaluable const*)+0x35
I. 03/16 13:38:55. 0000224187 pc: 0x7f010140473d dfo_OrderBy::ValidateLocalInternalConsistency()+0x75d
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101326c6c dfo::ValidateInternalConsistency()+0x2c
I. 03/16 13:38:55. 0000224187 pc: 0x7f01013b8488 dfo_Root::Prepare()+0x3d8
I. 03/16 13:38:55. 0000224187 pc: 0x7f01024e7351 db_dmlcommand::ExecuteDFOTree()+0x6d
I. 03/16 13:38:55. 0000224187 pc: 0x7f01024770bf db_InsertRoot::Execute()+0xcf
I. 03/16 13:38:55. 0000224187 pc: 0x7f01022be342 st_command::DoCmdThroughResourceGate()+0x82
I. 03/16 13:38:55. 0000224187 pc: 0x7f0102304ded st_iqdml::Insert(a_statement*, UIConnection*, UICursor*, unsigned int*)+0x8d
I. 03/16 13:38:55. 0000224187 pc: 0x7f0101155b71 UIQDML_Insert+0x21
I. 03/16 13:38:55. 0000224187 pc: 0x7f010230a3b6 st_SAIQInterfaceInfo::callFunction()+0x26
I. 03/16 13:38:55. 0000224187 pc: 0x7f0102368243 st_SAIQInterface::RunIQFunc(st_SAIQInterfaceInfo*)+0x189
I. 03/16 13:38:55. 0000224187 pc: 0x7f010230ad2a st_SAIQInterface::Execute(int, void*, unsigned int (*)+0x20a
I. 03/16 13:38:55. 0000224187 pc: 0x7f010188146e saint_iqthresholddml::Insert(a_statement*, IConnection*, ICursor*, unsigned int*)+0x8e
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0776a2 dbi_insert(Connection*, a_statement*, a_stmt*, a_stmt_identifier*, unsigned int, unsigned int, TableDef*)+0x252
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0779ca dbi_tsql_select_into(Connection*, a_statement*, a_context_ref*, a_stmt*, a_stmt_identifier*, unsigned int, unsigned int)+0x1aa
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b16488e DoExecuteStmt(Connection*, a_stmt*, a_statement*, a_stmt_identifier*, unsigned short, unsigned int)+0x1fde
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0dceca process_tsql_select(Connection*, a_context_ref*, a_statement*, a_stmt*)+0x8a
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0ed68c exec_procedure_stmt(Connection*, a_context_ref*, a_statement*, unsigned int, unsigned int)+0xb7c
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0ee1d2 run_procedure(a_context_ref*, dfm_CallInfo*, unsigned int, Connection*, unsigned int)+0x352
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0eef77 call_procedure(Connection*, a_proc_def*, a_trigger_def*, a_base_expr*, a_procedure_arg*, unsigned int, a_db_cursor*, bool)+0xd7
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0ef5ae dbi_callprocedure(Connection*, a_call*, bool, unsigned int)+0x12e
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b164532 DoExecuteStmt(Connection*, a_stmt*, a_statement*, a_stmt_identifier*, unsigned short, unsigned int)+0x1c82
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0e5935 process_exec_immediate(Connection*, a_context_ref*, a_statement*)+0x4c5
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0ed2b1 exec_procedure_stmt(Connection*, a_context_ref*, a_statement*, unsigned int, unsigned int)+0x7a1
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0ee1d2 run_procedure(a_context_ref*, dfm_CallInfo*, unsigned int, Connection*, unsigned int)+0x352
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0eef77 call_procedure(Connection*, a_proc_def*, a_trigger_def*, a_base_expr*, a_procedure_arg*, unsigned int, a_db_cursor*, bool)+0xd7
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b0ef5ae dbi_callprocedure(Connection*, a_call*, bool, unsigned int)+0x12e
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b164532 DoExecuteStmt(Connection*, a_stmt*, a_statement*, a_stmt_identifier*, unsigned short, unsigned int)+0x1c82
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b16653a db__execute(Connection*, an_sqlpres_receive*)+0x12a
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b175b14 RequestProcedure::call()+0xc64
I. 03/16 13:38:55. 0000224187 pc: 0x7f048afd1e7e Context::call(Procedure*, Context**)+0x4e
I. 03/16 13:38:55. 0000224187 pc: 0x7f048afd1f66 Worker::call_on_stack(Procedure*)+0x56
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b1705ed TopProcedure::call()+0x3d
I. 03/16 13:38:55. 0000224187 pc: 0x7f048afd54e9 Worker::spawn(Procedure*)+0x49
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b1709fc EngStream::handle_ind(unsigned char, unsigned int)+0x13c
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b174404 EngStream::execute()+0xce4
I. 03/16 13:38:55. 0000224187 pc: 0x7f048b16f935 RQBaseItem::do_work(Worker*)+0x25
I. 03/16 13:38:55. 0000224187     ******************* End of STACKTRACE ******************
I. 03/16 13:38:55. 0000224187     **
I. 03/16 13:38:55. 0000224187     **       End of stack trace from Non-Fatal IQ Internal Error dflib/dfo_cOrderBy.cxx:370
I. 03/16 13:38:55. 0000224187     **
I. 03/16 13:38:55. 0000224187     ********************************************************

 


Read more...

Environment

IQ 16 SP 4 PL 10

Product

SAP IQ 16.0

Keywords

KBA , BC-SYB-IQ , Sybase IQ , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.