apache / apache/echarts

Not report proper error when fromDatasetId is wrong

Open
#15,166 0 comments 0 reactions 1 assignee Claimed by @100pah View on GitHub
bug en
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
5.1.2

### Steps to reproduce
If I specified wrong fromDatasetId like this:
```ts
dataset: [
{
id: 'RawData',
source: rawData
},
{
id: 'CountryABData',
fromDatasetId: 'IdRawData',
transform: {
type: 'filter',
config: {
or: [{
dimension: 'Country', '=': COUNTRY_A
}, {
dimension: 'Country', '=': COUNTRY_B
}]
}
}
}
],
```

### What is expected?
Should report error message like `can't find dataset which id is 'IdRawData'`

### What is actually happening?
It reports `invalid sourceFormat: unkown`

7e080ae6a07d9a2ac0ebca0be452c209

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.