Suppose we have a table;
cr> create table documents_a (
... title text,
... body text,
... INDEX title_body_ft
... using fulltext(title, body) with (analyzer = 'english')
... );
Now we need to alter and add a column in it such that it contains all the other field values
alter table documents_a ADD COLUMN new_column string index using fulltext("body","title","new_column") with (analyzer = 'english');
This gives following exception :
SQLActionException[SQLParseException: line 1:74: extraneous input ‘(’ expecting {, ‘NOT’, ‘PRIMARY KEY’, ‘INDEX’, ‘STORAGE’, ‘;’}]
How to resolve this exception and where am I doing it wrong. Also, I want to have values of all the columns in the newly added column.
Crate Version : 3.2.2
JDK : 1.8