apache / apache/druid

LATEST(expr, maxBytes) doesn't work on columns ingested as stringLast.

Open
#9,756 3 comments 0 reactions 0 assignees View on GitHub
Area - Querying Bug
Dominant language
Java
Stars
14.1k
Forks
3.8k
Avg merge
2d 58m
Merged PRs (30d)
233

Description

### Description

I have ingested few columns using stringLast aggregator, which stores the data as pair of time and value. I got to know that the idea is to use the same aggregator on both ingestion and query sides. But the LATEST(expr, maxBytes) doesn't work on columns stored as stringLast.

### Affected Version

Version - 0.17.0

[Slack thread](https://the-asf.slack.com/archives/CJ8D1JTB8/p1587594263292900)

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by reproducing the failure in Druid 0.17.0 with columns ingested using the stringLast aggregator and queried with LATEST(expr, maxBytes), then trace the relevant ingestion and query aggregation paths. Done means LATEST works correctly for columns stored as stringLast, with regression coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.