未验证 提交 bf49af05 编写于 作者: S sushuang 提交者: GitHub

Merge pull request #10346 from susiwen8/#10343

Fix negetive number or string exist in dimensions array, the correspo…
......@@ -117,7 +117,7 @@ function completeDimensions(sysDims, source, opt) {
// Note: It is allowed that `dataDims.length` is `0`, e.g., options is
// `{encode: {x: -1, y: 1}}`. Should not filter anything in
// this case.
if (dataDims.length === 1 && dataDims[0] < 0) {
if (dataDims.length === 1 && !isString(dataDims[0]) && dataDims[0] < 0) {
encodeDef.set(coordDim, false);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册