-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature Request: Change varbinary to varchar in schemas used in examp…
…les folder (#17318) Signed-off-by: arthmis <[email protected]>
- Loading branch information
Showing
13 changed files
with
86 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
create table if not exists customer( | ||
customer_id bigint not null, | ||
email varbinary(128), | ||
email varchar(128), | ||
primary key(customer_id) | ||
) ENGINE=InnoDB; | ||
|
||
create table if not exists corder( | ||
order_id bigint not null, | ||
customer_id bigint, | ||
sku varbinary(128), | ||
sku varchar(128), | ||
price bigint, | ||
primary key(order_id) | ||
) ENGINE=InnoDB; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"sharded": false, | ||
"vindexes": { | ||
"hash": { | ||
"type": "hash" | ||
"xxhash": { | ||
"type": "xxhash" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
{ | ||
"sharded": true, | ||
"vindexes": { | ||
"hash": { | ||
"type": "hash" | ||
"xxhash": { | ||
"type": "xxhash" | ||
} | ||
}, | ||
"tables": { | ||
} | ||
} | ||
"tables": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
create table if not exists product( | ||
sku varbinary(128), | ||
description varbinary(128), | ||
sku varchar(128), | ||
description varchar(128), | ||
price bigint, | ||
primary key(sku) | ||
) ENGINE=InnoDB; | ||
create table if not exists customer( | ||
customer_id bigint not null auto_increment, | ||
email varbinary(128), | ||
email varchar(128), | ||
primary key(customer_id) | ||
) ENGINE=InnoDB; | ||
create table if not exists corder( | ||
order_id bigint not null auto_increment, | ||
customer_id bigint, | ||
sku varbinary(128), | ||
sku varchar(128), | ||
price bigint, | ||
primary key(order_id) | ||
) ENGINE=InnoDB; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"sharded": true, | ||
"vindexes": { | ||
"hash": { | ||
"type": "hash" | ||
"xxhash": { | ||
"type": "xxhash" | ||
} | ||
}, | ||
"tables": { | ||
"messages": { | ||
"column_vindexes": [ | ||
{ | ||
"column": "page", | ||
"name": "hash" | ||
"name": "xxhash" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
create table if not exists product( | ||
sku varbinary(128), | ||
description varbinary(128), | ||
sku varchar(128), | ||
description varchar(128), | ||
price bigint, | ||
primary key(sku) | ||
) ENGINE=InnoDB; | ||
create table if not exists customer( | ||
customer_id bigint not null auto_increment, | ||
email varbinary(128), | ||
email varchar(128), | ||
primary key(customer_id) | ||
) ENGINE=InnoDB; | ||
create table if not exists corder( | ||
order_id bigint not null auto_increment, | ||
customer_id bigint, | ||
sku varbinary(128), | ||
sku varchar(128), | ||
price bigint, | ||
primary key(order_id) | ||
) ENGINE=InnoDB; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
CREATE TABLE IF NOT EXISTS customer ( | ||
id int NOT NULL, | ||
fullname varbinary(256), | ||
nationalid varbinary(256), | ||
country varbinary(256), | ||
fullname varchar(256), | ||
nationalid varchar(256), | ||
country varchar(256), | ||
primary key(id) | ||
); |