Hi team, I noticed Timestamp Index is supported an...
# general
a
Hi team, I noticed Timestamp Index is supported and tried to use it. But there is this error. {“code”400,“error”“Cannot deserialize value of type
org.apache.pinot.spi.config.table.FieldConfig$IndexType
from String \“TIMESTAMP\“: not one of the values accepted for Enum class: [INVERTED, FST, JSON, H3, TEXT, SORTED, RANGE]\n at [Source: (String)\“{\“tableName\“\“test time index\“,\“tableType\“\“REALTIME\“,\“segmentsConfig\“{\“schemaName\“\“test_time_index\“,\“timeColumnName\“\“created on\“,\“timeType\“\“MILLISECONDS\“,\“allowNullTimeValue\“true,\“replicasPerPartition\“\“1\“,\“retentionTimeUnit\“\“DAYS\“,\“retentionTimeValue\“\“30\“,\“segmentPushType\“\“APPEND\“,\“completionConfig\“{\“completionMode\“\“DOWNLOAD\“}},\“tenants\“{},\“fieldConfigList\“[{\“name\“\“timestamp\“,\“encodingType\“\“DICTIONARY\“,\“indexTypes\“[\“TIMESTAMP\“],\“time\“[truncated 3199 chars]; line: 1, column: 483] (through reference chain: org.apache.pinot.spi.config.table.TableConfig[\“fieldConfigList\“]->java.util.ArrayList[0]->org.apache.pinot.spi.config.table.FieldConfig[\“indexTypes\“]->java.util.ArrayList[0])“} Part of my table schema is: “dateTimeFieldSpecs”: [ { “name”: “timestamp”, “dataType”: “TIMESTAMP”, “format”: “1MILLISECONDSEPOCH”, “granularity”: “1:MILLISECONDS” } And part of my table config is: “fieldConfigList”: [ { “name”: “timestamp”, “encodingType”: “DICTIONARY”, “indexTypes”: [“TIMESTAMP”], “timestampConfig”: { “granularities”: [ “DAY”, “WEEK”, “MONTH” ] } } ] Any idea how to fix it?
m
@User
What version of Pinot?
a
I’m using Pinot 0.10.0 and I’m referring to this doc https://docs.pinot.apache.org/basics/indexing/timestamp-index#supported-data-type.
j
This feature is not released yet. We should add a note in the documentation denoting it will be available in the next release
a
I see. Thanks.