Skip to content

topN: Fix caching of Float dimension values.#5653

Merged
fjy merged 1 commit intoapache:masterfrom
gianm:fix-topn-cache
Apr 17, 2018
Merged

topN: Fix caching of Float dimension values.#5653
fjy merged 1 commit intoapache:masterfrom
gianm:fix-topn-cache

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Apr 17, 2018

Jackson would deserialize them as Doubles, leading to ClassCastExceptions
in the topN processing pipeline when it attempted to treat them as Floats.

Jackson would deserialize them as Doubles, leading to ClassCastExceptions
in the topN processing pipeline when it attempted to treat them as Floats.
@gianm gianm added the Bug label Apr 17, 2018
@fjy fjy merged commit 5d09f76 into apache:master Apr 17, 2018
sathishsri88 pushed a commit to sathishs/druid that referenced this pull request May 8, 2018
Jackson would deserialize them as Doubles, leading to ClassCastExceptions
in the topN processing pipeline when it attempted to treat them as Floats.
@jihoonson jihoonson added this to the 0.12.2 milestone Jul 5, 2018
jihoonson pushed a commit to implydata/druid-public that referenced this pull request Jul 6, 2018
Jackson would deserialize them as Doubles, leading to ClassCastExceptions
in the topN processing pipeline when it attempted to treat them as Floats.
jihoonson added a commit to implydata/druid-public that referenced this pull request Jul 6, 2018
jihoonson pushed a commit to jihoonson/druid that referenced this pull request Jul 6, 2018
Jackson would deserialize them as Doubles, leading to ClassCastExceptions
in the topN processing pipeline when it attempted to treat them as Floats.
gianm pushed a commit that referenced this pull request Jul 9, 2018
Jackson would deserialize them as Doubles, leading to ClassCastExceptions
in the topN processing pipeline when it attempted to treat them as Floats.
leventov pushed a commit to metamx/druid that referenced this pull request Jul 20, 2018
Jackson would deserialize them as Doubles, leading to ClassCastExceptions
in the topN processing pipeline when it attempted to treat them as Floats.

@Test
public void testCacheStrategyWithFloatDimension() throws Exception
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gianm this test is empty. Is this intended?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I must have included it by accident. I think it's not needed since I modified the testCacheStrategy test to check all four supported types.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'll remove this.

@gianm gianm deleted the fix-topn-cache branch September 23, 2022 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants