Hi,
I just tried a “SHOW CREATE TABLE” on version 4.5 which can’t be replayed (i spare you the table parameters) :
CREATE TABLE IF NOT EXISTS "doc"."books" (
"id" INTEGER,
"author" TEXT,
"author_ft" TEXT INDEX USING FULLTEXT WITH (
analyzer = 'mysqllike'
),
"book_title" TEXT,
"column_name" TEXT,
"book_title_ft" TEXT INDEX USING FULLTEXT WITH (
analyzer = 'mysqllike'
),
PRIMARY KEY ("id"),
INDEX "author_ft" USING FULLTEXT ("author"),
INDEX "book_title_ft" USING FULLTEXT ("book_title")
)
....
Indexes are specified Twice … so CrateDB says :
But on version 4.4.3, the same table show me this for the SHOW CREATE TABLE statement :
CREATE TABLE IF NOT EXISTS "doc"."books" (
"id" INTEGER,
"author" TEXT,
"book_title" TEXT,
"column_name" TEXT,
PRIMARY KEY ("id"),
INDEX "author_ft" USING FULLTEXT ("author") WITH (
analyzer = 'mysqllike'
),
INDEX "book_title_ft" USING FULLTEXT ("book_title") WITH (
analyzer = 'mysqllike'
)
)
...
Which works fine.
So it seems the SHOW CREATE TABLE statement is buggy on the 4.5 version.