https://mariadb.com/kb/en/library/columnstore-create-table/
说这个,它有效..
DROP TABLE IF EXISTS `orders`;
CREATE TABLE orders (
orderkey INTEGER,
customer VARCHAR(45)
) ENGINE=ColumnStore;
此页面表示支持TEXT数据类型。
https://mariadb.com/kb/en/library/columnstore-data-types/
ColumnStore支持以下数据类型:TEXT
但这不起作用..
DROP TABLE IF EXISTS `orders`;
CREATE TABLE orders (
orderkey INTEGER,
customer TEXT
) ENGINE=ColumnStore;
ERROR 1178 (42000): The storage engine for the table doesn't support The syntax or the data type(s) is not supported by Columnstore. Please check the Columnstore syntax guide for supported syntax or data types.
我正在运行1.0.11。我这样得到:
wget https://downloads.mariadb.com/enterprise/htxx-hpee/mariadb-columnstore/1.0.11/ubuntu/dists/xenial/main/binary_amd64/mariadb-columnstore-1.0.11-1-xenial.x86_64.deb.tar.gz
我的安装代码在这里:
https://github.com/dgleba/vamp206a/blob/master/apps/mcs/mariadbcolumnstore-step1.sh#L84
我运行a2/24start.sh
然后/apps/mcs/mariadbcolumnstore-step1.sh
然后按照...step2.sh
任何人都可以对文档说支持TEXT的事实有所了解,但是我收到了这个错误?
答案 0 :(得分:1)
https://mariadb.com/kb/en/library/columnstore-data-types/表示在ColumnStore版本1.1.0之前不支持TEXT
和BLOB
。
https://mariadb.com/kb/en/library/mariadb-columnstore-11-release-notes/表示1.1.0于2017-09-18发布。
同时,考虑使用VARCHAR(...)
- 似乎允许使用最多8000个。