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

table_usage procedure output is not consistent

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • 1.1.2
    • Icebox
    • MDB Plugin
    • None

    Description

      While running a table_usage, I found that the total_usage is 0 even if data_disk_usage is in GB. The dictonary is of 0 (null) byte size. Not sure why (or a bug).
      ---------------------------------------------------------------------------------------

      TABLE_SCHEMA TABLE_NAME DATA_DISK_USAGE DICT_DISK_USAGE TOTAL_USAGE

      ---------------------------------------------------------------------------------------

      e4genodebpm eutrancellrelation_source_hourly 2.10 GB 0 Bytes 0 Bytes

      ---------------------------------------------------------------------------------------
      1 row in set (6 min 30.54 sec)

      If an "ifnull" is used in the total_usage, the output looks right
      columnstore_info.format_filesize(data + ifnull(dict,0)) as TOTAL_USAGE

      ---------------------------------------------------------------------------------------

      TABLE_SCHEMA TABLE_NAME DATA_DISK_USAGE DICT_DISK_USAGE TOTAL_USAGE

      ---------------------------------------------------------------------------------------

      e4genodebpm eutrancellrelation_source_hourly 2.10 GB 0 Bytes 2.10 GB

      ---------------------------------------------------------------------------------------
      1 row in set (10 min 25.25 sec)

      Attached is an update of table_usage procedure.

      Attachments

        Issue Links

          Activity

            People

              LinuxJedi Andrew Hutchings (Inactive)
              bobypeter BOBY PETER
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.