Backward compatible change leading to non-queryable REALTIME table ?
Following Slack discussion: https://apache-pinot.slack.com/archives/C011C9JHN7R/p1624260346227200
After adding a new INT column on a REALTIME table via updating its schema file and calling the API POST /schemas and POST /tables (*) endpoints - the schema is correctly updated but querying the table results in the following error :
*: Likely an unnecessary call from a generic workflow
[
{
"errorCode": 500,
"message": "MergeResponseError:\nData schema mismatch between merged block:
[communityId(STRING),documentId(STRING),eventTimeString(STRING),eventType(STRING),**hoverDuration(INT)**,ibcustomer(STRING),origin(STRING),projectId(STRING),selectionId(STRING),timeString(STRING),userId(STRING)]
and block to merge:
[communityId(STRING),documentId(STRING),eventTimeString(STRING),eventType(STRING),ibcustomer(STRING),origin(STRING),projectId(STRING),selectionId(STRING),timeString(STRING),userId(STRING)],
drop block to merge"
}
]
Additional context:
- Column was first added as Dimension, then changed to Metric
- The newly added field come from a JSON sub document, and is parsed via
ingestionConfig.transformConfigwith defaut value (-1).
@xiangfu0 Suggested to restart the REALTIME servers - but any non "operational" and downtime-less solutions would be ideal if possible :)
This behavior is due to the fact that pinot.server.instance.reload.consumingSegment was off (false)
The following PR https://github.com/apache/incubator-pinot/pull/7078/files updated this default behavior :+1:
Closing !