Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-6220

Research and resolve boost::bad_any_cast cross engine error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • 2025-10

    Description

      Error

      ERROR 1815 (HY000) at line 4: Internal error: boost::bad_any_cast: failed conversion using boost::any_cast
      

      Query:

      time mariadb -h localhost  --skip-ssl -e "
      SET  columnstore_unstable_optimizer=ON;
      SET optimizer_switch='index_merge=off,index_merge_union=off,index_merge_sort_union=off,index_merge_intersection=off,index_merge_sort_intersection=off,index_condition_pushdown=off,derived_merge=off,derived_with_keys=off,firstmatch=off,loosescan=off,materialization=on,in_to_exists=off,semijoin=off,partial_match_rowid_merge=off,partial_match_table_scan=off,subquery_cache=off,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=off,semijoin_with_cache=off,join_cache_incremental=off,join_cache_hashed=off,join_cache_bka=off,optimize_join_buffer_size=off,table_elimination=off,extended_keys=off,exists_to_in=off,orderby_uses_equalities=off,condition_pushdown_for_derived=on,split_materialized=off,condition_pushdown_for_subquery=off,rowid_filter=off,condition_pushdown_from_having=on,not_null_range_scan=off,hash_join_cardinality=off,cset_narrowing=off,sargable_casefold=off';
      select sum(c_ytd_payment), c_state from test.customer_indexed group by c_state;";
      

      Data & Reproduction:

      CREATE TABLE `customer` (
        `c_id` int(5) NOT NULL AUTO_INCREMENT,
        `c_d_id` int(2) NOT NULL,
        `c_w_id` int(6) NOT NULL,
        `c_first` varchar(16) ,
        `c_middle` char(2) ,
        `c_last` varchar(16) ,
        `c_street_1` varchar(20) ,
        `c_street_2` varchar(20) ,
        `c_city` varchar(20) ,
        `c_state` char(2) ,
        `c_zip` char(9) ,
        `c_phone` char(16) ,
        `c_since` datetime DEFAULT NULL,
        `c_credit` char(2) ,
        `c_credit_lim` decimal(12,2) DEFAULT NULL,
        `c_discount` decimal(4,4) DEFAULT NULL,
        `c_balance` decimal(12,2) DEFAULT NULL,
        `c_ytd_payment` decimal(12,2) DEFAULT NULL,
        `c_payment_cnt` int(8) DEFAULT NULL,
        `c_delivery_cnt` int(8) DEFAULT NULL,
        `c_data` varchar(500) ,
        PRIMARY KEY (`c_id`)
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
       
      INSERT INTO test.customer (
        c_d_id, c_w_id, c_first, c_middle, c_last,
        c_street_1, c_street_2, c_city, c_state, c_zip,
        c_phone, c_since, c_credit, c_credit_lim, c_discount,
        c_balance, c_ytd_payment, c_payment_cnt, c_delivery_cnt, c_data
      ) SELECT   ROUND(RAND() * 1, 0), ROUND(RAND() * 1, 0), substring(MD5(RAND()*1000000000),1,16), substring(MD5(RAND()),1,2), substring(MD5(RAND()*1000000000),1,16), substring(MD5(RAND()*1000000000),1,20), substring(MD5(RAND()*1000000000),1,20), substring(MD5(RAND()*1000000000),1,20), substring(MD5(RAND()),1,2), substring(MD5(RAND()),1,9), substring(MD5(RAND()),1,16), CURRENT_TIMESTAMP - INTERVAL FLOOR(RAND() * 365 * 24 * 60 *60) SECOND, substring(MD5(RAND()),1,2), ROUND(RAND() * 9999999999, 2), ROUND(RAND() * 0, 4), ROUND(RAND() * 9999999999, 2), ROUND(RAND() * 9999999999, 2), ROUND(RAND() * 1, 0), ROUND(RAND() * 1, 0), substring(MD5(RAND()*1000000000),1,500) FROM seq_1_to_40000000;
       
       
      time mariadb -h localhost  --skip-ssl -e "ANALYZE table test.customer_indexed persistent for columns (c_state,c_ytd_payment) indexes();"
       
      # Then enable Query Accelerator and run query above
      

      Attachments

        Activity

          People

            sergey.zefirov Sergey Zefirov
            allen.herrera Allen Herrera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.