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

initialize extent min/max with reasonable values

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 23.02.10, 23.02.15, 23.10.4
    • 25.10.0
    • None
    • 2025-9

    Description

      Summary:
      Customers run automation every hour or day sometimes looking to drop data after x number of days. They do so by running calshowpartitions on everytable and running caldroppartitions because the system is large. However their automation hits weird errors when they run into the following cases that claim year 32767. Empty paritions will be initialized with "random" values, even after a select like should be initialized with 0 values or at least N/A.

      Reproduction:

      create table t5 ( d date) engine=columnstore;
      SELECT calShowPartitions('t5','d');
       select min(d) from t5;
      SELECT calShowPartitions('t5','d');
      

      Actual Outcome:

      --------------------------------------------------------------------------------------------------------------------------------------------------------------+
      | Part#     Min                           Max                           Status
       0.0.3     32767-15-63                   32768-00-00                   Enabled |
      

      Expected Outcome:
      or 0 as string dataypes already show N/A. this way we separate data exists vs no data exists for calShowPartitions output

      MariaDB [test]> SELECT calShowPartitions('t5','d');
      +--------------------------------------------------------------------------------------------------------------------------------------------------------------+
      | calShowPartitions('t5','d')                                                                                                                                  |
      +--------------------------------------------------------------------------------------------------------------------------------------------------------------+
      | Part#     Min                           Max                           Status
        0.0.1     N/A                           N/A                           Enabled |
      +--------------------------------------------------------------------------------------------------------------------------------------------------------------+
      1 row in set (0.052 sec)
      
      

      Attachments

        Issue Links

          Activity

            People

              leonid.fedorov Leonid Fedorov
              Richard Richard Stracke
              Votes:
              1 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.