apache / apache/pinot

Support for TIMESTAMP data type in Configuration Recommendation Engine

Open
#8,086 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.1k
Forks
1.5k
Avg merge
1d 21h
Merged PRs (30d)
189

Description

When I run the configuration recommendation engine on a schema that contains a field with a TIMESTAMP data type, the following error is thrown:

`{
"_code": 400,
"_error": "java.lang.IllegalArgumentException: Time column can be only INT or LONG: TIMESTAMP"
}`

The [TimeGenerator](https://github.com/apache/pinot/blob/0fe7ef89127b9e920ef369cd9adad9c8b817dde9/pinot-controller/src/main/java/org/apache/pinot/controller/recommender/data/generator/TimeGenerator.java#L68) class doesn’t support a TIMESTAMP data type and hence throws the validation error.

Contributor guide

Open the contributing guide

Research direction

Start with pinot-controller/src/main/java/org/apache/pinot/controller/recommender/data/generator/TimeGenerator.java at the referenced validation near line 68. Trace how the configuration recommendation engine handles schema time columns, then verify that a schema containing TIMESTAMP completes without the reported IllegalArgumentException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.