YahooArchive / swiv

For the open source UI formerly know as Pivot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate dimension name error when introspecting druid

l15k4 opened this issue · comments

Hey,

we have several dimensions like d_a & d_A or d_key & d_Key which is considered duplicate and Swiv errors out, would it be possible to filter out the duplicates and log error instead of crashing?

Fatal settings load error: duplicate dimension name 'd_a' found in data cube: 'gwiq-daily-p'
Error: duplicate dimension name 'd_a' found in data cube: 'gwiq-daily-p'
    at /usr/local/lib/node_modules/yahoo-swiv/build/common/models/data-cube/data-cube.js:39:23
    at List.__iterate (/usr/local/lib/node_modules/yahoo-swiv/node_modules/immutable/dist/immutable.js:2208:13)
    at List.forEach (/usr/local/lib/node_modules/yahoo-swiv/node_modules/immutable/dist/immutable.js:4383:19)
    at checkUnique (/usr/local/lib/node_modules/yahoo-swiv/build/common/models/data-cube/data-cube.js:36:20)
    at new DataCube (/usr/local/lib/node_modules/yahoo-swiv/build/common/models/data-cube/data-cube.js:137:9)
    at DataCube.addAttributes (/usr/local/lib/node_modules/yahoo-swiv/build/common/models/data-cube/data-cube.js:728:16)
    at DataCube.updateWithExternal (/usr/local/lib/node_modules/yahoo-swiv/build/common/models/data-cube/data-cube.js:497:21)
    at Function.DataCube.fromClusterAndExternal (/usr/local/lib/node_modules/yahoo-swiv/build/common/models/data-cube/data-cube.js:164:48)
    at SettingsManager.onExternalChange (/usr/local/lib/node_modules/yahoo-swiv/build/server/utils/settings-manager/settings-manager.js:237:41)
    at ClusterManager.updateManagedExternal (/usr/local/lib/node_modules/yahoo-swiv/build/server/utils/cluster-manager/cluster-manager.js:75:23)

I don't know swiv much, so I cannot really tell why it is trying to avoid duplicate dimensions and metrics and as I've never used JS or TS, I'd have hard times to submit a fix.