Closed proddata closed 4 years ago
Regex in tables.js:144 is wrong / doesn't take care of whitespaces within columns
var isNestedColumn = function (column) {
var re = /([^\s]+)(\[\'([^\s]+)\'])+/i;
return column.match(re);
};
probably should be something like ...
var isNestedColumn = function (column) {
var re = /([^\s]+)(\[\'(.+)\'])+/i;
return column.match(re);
};
@proddata Thanks for reporting this and pinning down the issue! The fix has been merged, and will be available in the next admin ui release. :slightly_smiling_face:
CrateDB version: 4.1.6
Environment description: CrateDB Cloud (Dev-Instance - 3 nodes are / 3 CPUs / 3GB Ram
Problem description:
When clicking "Query Table" generated query syntax is wrong for object fields with whitespaces Steps to reproduce:
In Admin UI go to table nexo.test and press 'Query Table'
Which leads to an error, as the syntax is wrong ... should be
Or even better, should be ..