[MDEV-19836] Reuse new I_S table definition helper classes for RocksDB Created: 2019-06-22  Updated: 2019-06-24  Resolved: 2019-06-22

Status: Closed
Project: MariaDB Server
Component/s: Information Schema, Storage Engine - RocksDB
Fix Version/s: 10.5.0

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-19843 Modify ST_FIELD_INFO to use Type_hand... Closed
is blocked by MDEV-19772 Add helper classes for ST_FIELD_INFO Closed
Relates
relates to MDEV-19810 Reuse new I_S table definition helper... Closed
relates to MDEV-19818 Reuse new I_S table definition helper... Closed
relates to MDEV-19832 Reuse new I_S table definition helper... Closed
relates to MDEV-19833 Reuse new I_S table definition helper... Closed

 Description   

The patch for MDEV-19772 earlier introduced a number of helper classes to define INFORMATION_SCHEMA tables.
This task is to make INFORMATION_SCHEMA definitions in /storage/innobase use these new classes.

Let's also fix wrong RocksDB I_S column definitions for integer columns:

  • SMALLINT(2) instead of SMALLINT(6)
  • INT(4) to INT(11)
  • BIGINT(8) to BIGINT(21)

The sources erroneously use wrong lengths to define columns (size in bytes vs number of decimal digits):

  • sizeof(short) instead of 6
  • sizeof(uint32) instead MY_INT32_NUM_DECIMAL_DIGITS
  • sizeof(uint64) instead of MY_INT64_NUM_DECIMAL_DIGITS

Generated at Thu Feb 08 08:54:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.