Skip to content

Commit eafc9d8

Browse files
committed
MDEV-17171: RocksDB Tables do not have "Creation Date"
Temporarily revert the patch
1 parent ad8266a commit eafc9d8

20 files changed

+74
-278
lines changed

storage/rocksdb/ha_rocksdb.cc

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,8 +2306,6 @@ class Rdb_transaction {
23062306
bool m_is_delayed_snapshot = false;
23072307
bool m_is_two_phase = false;
23082308

2309-
std::unordered_set<Rdb_tbl_def*> modified_tables;
2310-
23112309
private:
23122310
/*
23132311
Number of write operations this transaction had when we took the last
@@ -3003,25 +3001,6 @@ class Rdb_transaction {
30033001
virtual void start_tx() = 0;
30043002
virtual void start_stmt() = 0;
30053003

3006-
protected:
3007-
// Non-virtual functions with actions to be done on transaction start and
3008-
// commit.
3009-
void on_commit() {
3010-
time_t tm;
3011-
tm = time(nullptr);
3012-
for (auto &it : modified_tables) {
3013-
it->update_time = tm;
3014-
}
3015-
modified_tables.clear();
3016-
}
3017-
void on_rollback() {
3018-
modified_tables.clear();
3019-
}
3020-
public:
3021-
void log_table_write_op(Rdb_tbl_def *tbl) {
3022-
modified_tables.insert(tbl);
3023-
}
3024-
30253004
void set_initial_savepoint() {
30263005
/*
30273006
Set the initial savepoint. If the first statement in the transaction
@@ -3206,9 +3185,7 @@ class Rdb_transaction_impl : public Rdb_transaction {
32063185
goto error;
32073186
}
32083187

3209-
on_commit();
32103188
error:
3211-
on_rollback();
32123189
/* Save the transaction object to be reused */
32133190
release_tx();
32143191

@@ -3224,7 +3201,6 @@ class Rdb_transaction_impl : public Rdb_transaction {
32243201

32253202
public:
32263203
void rollback() override {
3227-
on_rollback();
32283204
m_write_count = 0;
32293205
m_insert_count = 0;
32303206
m_update_count = 0;
@@ -3546,9 +3522,7 @@ class Rdb_writebatch_impl : public Rdb_transaction {
35463522
res = true;
35473523
goto error;
35483524
}
3549-
on_commit();
35503525
error:
3551-
on_rollback();
35523526
reset();
35533527

35543528
m_write_count = 0;
@@ -3581,7 +3555,6 @@ class Rdb_writebatch_impl : public Rdb_transaction {
35813555
}
35823556

35833557
void rollback() override {
3584-
on_rollback();
35853558
m_write_count = 0;
35863559
m_insert_count = 0;
35873560
m_update_count = 0;
@@ -7726,8 +7699,6 @@ int ha_rocksdb::create_table(const std::string &table_name,
77267699
goto error;
77277700
}
77287701

7729-
m_tbl_def->put_creation_time(&dict_manager, batch, time(nullptr));
7730-
77317702
err = dict_manager.commit(batch);
77327703
if (err != HA_EXIT_SUCCESS) {
77337704
dict_manager.unlock();
@@ -10364,8 +10335,6 @@ int ha_rocksdb::update_write_row(const uchar *const old_data,
1036410335
row_info.tx->incr_insert_count();
1036510336
}
1036610337

10367-
row_info.tx->log_table_write_op(m_tbl_def);
10368-
1036910338
if (do_bulk_commit(row_info.tx)) {
1037010339
DBUG_RETURN(HA_ERR_ROCKSDB_BULK_LOAD);
1037110340
}
@@ -10845,7 +10814,6 @@ int ha_rocksdb::delete_row(const uchar *const buf) {
1084510814
}
1084610815

1084710816
tx->incr_delete_count();
10848-
tx->log_table_write_op(m_tbl_def);
1084910817

1085010818
if (do_bulk_commit(tx)) {
1085110819
DBUG_RETURN(HA_ERR_ROCKSDB_BULK_LOAD);
@@ -11044,12 +11012,6 @@ int ha_rocksdb::info(uint flag) {
1104411012
k->rec_per_key[j] = x;
1104511013
}
1104611014
}
11047-
11048-
stats.create_time = m_tbl_def->get_creation_time(&dict_manager);
11049-
}
11050-
11051-
if (flag & HA_STATUS_TIME) {
11052-
stats.update_time = m_tbl_def->update_time;
1105311015
}
1105411016

1105511017
if (flag & HA_STATUS_ERRKEY) {

storage/rocksdb/mysql-test/rocksdb/include/bulk_load.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ set rocksdb_bulk_load=0;
121121
--remove_file $file
122122

123123
# Make sure row count index stats are correct
124-
--replace_column 6 # 7 # 8 # 9 # 12 # 13 #
124+
--replace_column 6 # 7 # 8 # 9 #
125125
SHOW TABLE STATUS WHERE name LIKE 't%';
126126

127127
ANALYZE TABLE t1, t2, t3;
128128

129-
--replace_column 6 # 7 # 8 # 9 # 12 # 13 #
129+
--replace_column 6 # 7 # 8 # 9 #
130130
SHOW TABLE STATUS WHERE name LIKE 't%';
131131

132132
# Make sure all the data is there.

storage/rocksdb/mysql-test/rocksdb/include/bulk_load_unsorted.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ set rocksdb_bulk_load=0;
121121
--remove_file $file
122122

123123
# Make sure row count index stats are correct
124-
--replace_column 6 # 7 # 8 # 9 # 12 # 13 #
124+
--replace_column 6 # 7 # 8 # 9 #
125125
SHOW TABLE STATUS WHERE name LIKE 't%';
126126

127127
ANALYZE TABLE t1, t2, t3;
128128

129-
--replace_column 6 # 7 # 8 # 9 # 12 # 13 #
129+
--replace_column 6 # 7 # 8 # 9 #
130130
SHOW TABLE STATUS WHERE name LIKE 't%';
131131

132132
# Make sure all the data is there.

storage/rocksdb/mysql-test/rocksdb/r/bulk_load.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ pk a b
4040
set rocksdb_bulk_load=0;
4141
SHOW TABLE STATUS WHERE name LIKE 't%';
4242
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
43-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
44-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
45-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL partitioned 0 N
43+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
44+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
45+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL partitioned 0 N
4646
ANALYZE TABLE t1, t2, t3;
4747
Table Op Msg_type Msg_text
4848
test.t1 analyze status Engine-independent statistics collected
@@ -53,9 +53,9 @@ test.t3 analyze status Engine-independent statistics collected
5353
test.t3 analyze status OK
5454
SHOW TABLE STATUS WHERE name LIKE 't%';
5555
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
56-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
57-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
58-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL partitioned 0 N
56+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
57+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
58+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL partitioned 0 N
5959
select count(pk),count(a) from t1;
6060
count(pk) count(a)
6161
2500000 2500000

storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_cf.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ pk a b
4040
set rocksdb_bulk_load=0;
4141
SHOW TABLE STATUS WHERE name LIKE 't%';
4242
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
43-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
44-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
45-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL partitioned 0 N
43+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
44+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
45+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL partitioned 0 N
4646
ANALYZE TABLE t1, t2, t3;
4747
Table Op Msg_type Msg_text
4848
test.t1 analyze status Engine-independent statistics collected
@@ -53,9 +53,9 @@ test.t3 analyze status Engine-independent statistics collected
5353
test.t3 analyze status OK
5454
SHOW TABLE STATUS WHERE name LIKE 't%';
5555
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
56-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
57-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
58-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL partitioned 0 N
56+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
57+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
58+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL partitioned 0 N
5959
select count(pk),count(a) from t1;
6060
count(pk) count(a)
6161
2500000 2500000

storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_cf_and_data.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ pk a b
4040
set rocksdb_bulk_load=0;
4141
SHOW TABLE STATUS WHERE name LIKE 't%';
4242
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
43-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
44-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
45-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL partitioned 0 N
43+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
44+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
45+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL partitioned 0 N
4646
ANALYZE TABLE t1, t2, t3;
4747
Table Op Msg_type Msg_text
4848
test.t1 analyze status Engine-independent statistics collected
@@ -53,9 +53,9 @@ test.t3 analyze status Engine-independent statistics collected
5353
test.t3 analyze status OK
5454
SHOW TABLE STATUS WHERE name LIKE 't%';
5555
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
56-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
57-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
58-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL partitioned 0 N
56+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
57+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
58+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL partitioned 0 N
5959
select count(pk),count(a) from t1;
6060
count(pk) count(a)
6161
2500000 2500000

storage/rocksdb/mysql-test/rocksdb/r/bulk_load_rev_data.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ pk a b
4040
set rocksdb_bulk_load=0;
4141
SHOW TABLE STATUS WHERE name LIKE 't%';
4242
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
43-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
44-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
45-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL partitioned 0 N
43+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
44+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
45+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL partitioned 0 N
4646
ANALYZE TABLE t1, t2, t3;
4747
Table Op Msg_type Msg_text
4848
test.t1 analyze status Engine-independent statistics collected
@@ -53,9 +53,9 @@ test.t3 analyze status Engine-independent statistics collected
5353
test.t3 analyze status OK
5454
SHOW TABLE STATUS WHERE name LIKE 't%';
5555
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
56-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
57-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL 0 N
58-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_bin NULL partitioned 0 N
56+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
57+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL 0 N
58+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_bin NULL partitioned 0 N
5959
select count(pk),count(a) from t1;
6060
count(pk) count(a)
6161
2500000 2500000

storage/rocksdb/mysql-test/rocksdb/r/bulk_load_unsorted.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ LOAD DATA INFILE <input_file> INTO TABLE t3;
7272
set rocksdb_bulk_load=0;
7373
SHOW TABLE STATUS WHERE name LIKE 't%';
7474
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
75-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL 0 N
76-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL 0 N
77-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL partitioned 0 N
75+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL 0 N
76+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL 0 N
77+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL partitioned 0 N
7878
ANALYZE TABLE t1, t2, t3;
7979
Table Op Msg_type Msg_text
8080
test.t1 analyze status Engine-independent statistics collected
@@ -85,9 +85,9 @@ test.t3 analyze status Engine-independent statistics collected
8585
test.t3 analyze status OK
8686
SHOW TABLE STATUS WHERE name LIKE 't%';
8787
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
88-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL 0 N
89-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL 0 N
90-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL partitioned 0 N
88+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL 0 N
89+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL 0 N
90+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL partitioned 0 N
9191
select count(a),count(b) from t1;
9292
count(a) count(b)
9393
2500000 2500000

storage/rocksdb/mysql-test/rocksdb/r/bulk_load_unsorted_rev.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ LOAD DATA INFILE <input_file> INTO TABLE t3;
7272
set rocksdb_bulk_load=0;
7373
SHOW TABLE STATUS WHERE name LIKE 't%';
7474
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
75-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL 0 N
76-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL 0 N
77-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL partitioned 0 N
75+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL 0 N
76+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL 0 N
77+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL partitioned 0 N
7878
ANALYZE TABLE t1, t2, t3;
7979
Table Op Msg_type Msg_text
8080
test.t1 analyze status Engine-independent statistics collected
@@ -85,9 +85,9 @@ test.t3 analyze status Engine-independent statistics collected
8585
test.t3 analyze status OK
8686
SHOW TABLE STATUS WHERE name LIKE 't%';
8787
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
88-
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL 0 N
89-
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL 0 N
90-
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULL# #NULL latin1_swedish_ci NULL partitioned 0 N
88+
t1 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL 0 N
89+
t2 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL 0 N
90+
t3 ROCKSDB 10 Fixed 2500000 # # # # 0 NULLNULL NULLNULL latin1_swedish_ci NULL partitioned 0 N
9191
select count(a),count(b) from t1;
9292
count(a) count(b)
9393
2500000 2500000

storage/rocksdb/mysql-test/rocksdb/r/issue255.result

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CREATE TABLE t1 (pk BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT);
22
INSERT INTO t1 VALUES (5);
33
SHOW TABLE STATUS LIKE 't1';
44
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
5-
t1 ROCKSDB # Fixed # # # # # # 6# #NULL latin1_swedish_ci NULL 0 N
5+
t1 ROCKSDB # Fixed # # # # # # 6NULL NULLNULL latin1_swedish_ci NULL 0 N
66
INSERT INTO t1 VALUES ('538647864786478647864');
77
Warnings:
88
Warning 1264 Out of range value for column 'pk' at row 1
@@ -12,7 +12,7 @@ pk
1212
9223372036854775807
1313
SHOW TABLE STATUS LIKE 't1';
1414
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
15-
t1 ROCKSDB 10 Fixed 2 22 44 0 0 0 9223372036854775807# #NULL latin1_swedish_ci NULL 0 N
15+
t1 ROCKSDB 10 Fixed 2 22 44 0 0 0 9223372036854775807NULL NULLNULL latin1_swedish_ci NULL 0 N
1616
INSERT INTO t1 VALUES ();
1717
ERROR 23000: Duplicate entry '9223372036854775807' for key 'PRIMARY'
1818
SELECT * FROM t1;
@@ -21,7 +21,7 @@ pk
2121
9223372036854775807
2222
SHOW TABLE STATUS LIKE 't1';
2323
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
24-
t1 ROCKSDB # Fixed # # # # # # 9223372036854775807# #NULL latin1_swedish_ci NULL 0 N
24+
t1 ROCKSDB # Fixed # # # # # # 9223372036854775807NULL NULLNULL latin1_swedish_ci NULL 0 N
2525
INSERT INTO t1 VALUES ();
2626
ERROR 23000: Duplicate entry '9223372036854775807' for key 'PRIMARY'
2727
SELECT * FROM t1;
@@ -30,13 +30,13 @@ pk
3030
9223372036854775807
3131
SHOW TABLE STATUS LIKE 't1';
3232
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
33-
t1 ROCKSDB # Fixed # # # # # # 9223372036854775807# #NULL latin1_swedish_ci NULL 0 N
33+
t1 ROCKSDB # Fixed # # # # # # 9223372036854775807NULL NULLNULL latin1_swedish_ci NULL 0 N
3434
DROP TABLE t1;
3535
CREATE TABLE t1 (pk TINYINT NOT NULL PRIMARY KEY AUTO_INCREMENT);
3636
INSERT INTO t1 VALUES (5);
3737
SHOW TABLE STATUS LIKE 't1';
3838
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
39-
t1 ROCKSDB # Fixed # # # # # # 6# #NULL latin1_swedish_ci NULL 0 N
39+
t1 ROCKSDB # Fixed # # # # # # 6NULL NULLNULL latin1_swedish_ci NULL 0 N
4040
INSERT INTO t1 VALUES (1000);
4141
Warnings:
4242
Warning 1264 Out of range value for column 'pk' at row 1
@@ -46,7 +46,7 @@ pk
4646
127
4747
SHOW TABLE STATUS LIKE 't1';
4848
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
49-
t1 ROCKSDB # Fixed # # # # # # 127# #NULL latin1_swedish_ci NULL 0 N
49+
t1 ROCKSDB # Fixed # # # # # # 127NULL NULLNULL latin1_swedish_ci NULL 0 N
5050
INSERT INTO t1 VALUES ();
5151
ERROR 23000: Duplicate entry '127' for key 'PRIMARY'
5252
SELECT * FROM t1;
@@ -55,7 +55,7 @@ pk
5555
127
5656
SHOW TABLE STATUS LIKE 't1';
5757
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
58-
t1 ROCKSDB # Fixed # # # # # # 127# #NULL latin1_swedish_ci NULL 0 N
58+
t1 ROCKSDB # Fixed # # # # # # 127NULL NULLNULL latin1_swedish_ci NULL 0 N
5959
INSERT INTO t1 VALUES ();
6060
ERROR 23000: Duplicate entry '127' for key 'PRIMARY'
6161
SELECT * FROM t1;
@@ -64,5 +64,5 @@ pk
6464
127
6565
SHOW TABLE STATUS LIKE 't1';
6666
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
67-
t1 ROCKSDB # Fixed # # # # # # 127# #NULL latin1_swedish_ci NULL 0 N
67+
t1 ROCKSDB # Fixed # # # # # # 127NULL NULLNULL latin1_swedish_ci NULL 0 N
6868
DROP TABLE t1;

0 commit comments

Comments
 (0)