Skip to content
This repository was archived by the owner on Oct 5, 2018. It is now read-only.
This repository was archived by the owner on Oct 5, 2018. It is now read-only.

Duplicate dimension name error when introspecting druid #20

@l15k4

Description

@l15k4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions