Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error checking column similarity between join tables #2060

Closed
kyungtaak opened this issue May 14, 2019 · 2 comments
Closed

Error checking column similarity between join tables #2060

kyungtaak opened this issue May 14, 2019 · 2 comments
Assignees
Labels
bug Something isn't working @dashboard Component Name : Dashboard / Chart @engine Issues related to engine
Milestone

Comments

@kyungtaak
Copy link
Contributor

Describe the bug
Calling a query that checks the column similarity between join tables results in an error.

To Reproduce
Call query API with request body as bellow

{
  "queryType": "unionAll",
  "query": {
    "queryType": "sketch",
    "dataSource": {
      "type": "union",
      "dataSources": [
        "master","join"
      ]
    },
    "intervals": [
      "1900-01-01T00:00:00.0Z/2051-01-01T00:00:00.0Z"
    ]
  },
  "context": {
    "postProcessing": {
      "type": "similarity"
    },
    "allColumnsForEmpty": true
  }
}

Response

{
    "error": "Unknown exception",
    "errorMessage": "java.lang.Long cannot be cast to java.lang.String",
    "errorClass": "java.lang.ClassCastException",
    "errorStack": [
        "io.druid.query.sketch.SketchHandler$Theta.updateWithValue(SketchHandler.java:214)",
        "io.druid.query.sketch.SketchQueryRunner$1.accumulate(SketchQueryRunner.java:286)",
        "io.druid.query.sketch.SketchQueryRunner$1.accumulate(SketchQueryRunner.java:224)",
        "com.metamx.common.guava.FilteringAccumulator.accumulate(FilteringAccumulator.java:40)",
        "com.metamx.common.guava.MappingAccumulator.accumulate(MappingAccumulator.java:39)",
        "com.metamx.common.guava.BaseSequence.accumulate(BaseSequence.java:67)",
        "com.metamx.common.guava.MappedSequence.accumulate(MappedSequence.java:40)",
        "com.metamx.common.guava.ResourceClosingSequence.accumulate(ResourceClosingSequence.java:38)",
        "com.metamx.common.guava.FilteredSequence.accumulate(FilteredSequence.java:42)",
        "... more"
    ],
    "host": "metatron-web-05:8083",
    "serviceName": "druid/historical"
}

Error log : error.log

Additional context
image

@kyungtaak kyungtaak added bug Something isn't working @dashboard Component Name : Dashboard / Chart @engine Issues related to engine labels May 14, 2019
@kyungtaak kyungtaak added this to the 3.3.0 milestone May 14, 2019
@navis
Copy link

navis commented May 15, 2019

Regression from #1178.. time column should not be included for 'allColumnsForEmpty' things. Who fuck did made that silly option?

@navis
Copy link

navis commented May 15, 2019

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @dashboard Component Name : Dashboard / Chart @engine Issues related to engine
Projects
None yet
Development

No branches or pull requests

2 participants