Dear Team, I have a problem with a hybrid table. ...
# troubleshooting
j
Dear Team, I have a problem with a hybrid table. When I query the hybrid table (without specifying OFFLINE), it seems that it is not querying all the data. I see some hourBuckets missing. When I query the OFFLINE table, I can see the missing hourBuckets. I don't see anything abnormal in the logs. Any idea what could be happening? Some example: https://github.com/apache/pinot/issues/15171
a
We are having the same issue with the queries to hybrid tables, there are gaps in the hybrid table when all the records are in the OFFLINE table
j
i think it will not appear in realtime in offline tables, it takes some time
a
@Jatin Kumar, I don't understand your answer, realtime data bulk to OFFLINE tables, then information appears before in REALTIME that in OFFLINE tables
j
Edited my answer, i mean it takes time to reflect in offline tables
a
Yes but the gap is from 2025-03-05 110000.0 to 2025-03-06 040000.0, and the retention period for REALTIME is 6 hours and the task for REALTIME to OFFLINE is every 2 hours , Its about 20 hours delay
We see that gap doing the query to the hybrid table, if we do the query to the offline table we see te data without GAP
j
can you check timeboundary of this table?
a
we don't have time boundary configured
j
can you login into broker and run this
Copy code
tablename="<>"
curl "http://localhost:8099/debug/timeBoundary/${tablename}" 2>/dev/null | | jq
a
Copy code
{
  "status": "Time boundary successfully updated to: 1741261499000"
}
acarrion]# date -d @1741261499 Thu Mar 6 114459 UTC 2025
yes it seems that is something related to time boundary
j
so when you run the query on hybrid table , query will be splited into two parts one will go to offline, one will go to online in offline table config please share this
Copy code
"batchIngestionConfig": {
      "segmentIngestionType": "<>",
      "segmentIngestionFrequency": "<>"
a
In OFFLINE we don't have that configuration
Copy code
{
  "OFFLINE": {
    "tableName": "xxxxxx_OFFLINE",
    "tableType": "OFFLINE",
    "segmentsConfig": {
      "schemaName": "xxxxxxxx",
      "replication": "1",
      "retentionTimeUnit": "HOURS",
      "retentionTimeValue": "72",
      "timeType": "MILLISECONDS",
      "timeColumnName": "disconnectTime",
      "minimizeDataMovement": false
    },
    "tenants": {
      "broker": "xxx",
      "server": "xxx"
    },
    "tableIndexConfig": {
      "noDictionaryColumns": [
        "systemSeconds",
        "billingSeconds",
        "billingMiliseconds",
        "chargedSeconds",
        "pdd"
      ],
      "aggregateMetrics": false,
      "enableDefaultStarTree": false,
      "nullHandlingEnabled": true,
      "rangeIndexVersion": 2,
      "optimizeDictionaryForMetrics": false,
      "optimizeDictionary": false,
      "loadMode": "MMAP",
      "enableDynamicStarTreeCreation": false,
      "columnMajorSegmentBuilderEnabled": true,
      "noDictionarySizeRatioThreshold": 0.85,
      "autoGeneratedInvertedIndex": false,
      "createInvertedIndexDuringSegmentGeneration": false
    },
    "metadata": {},
    "fieldConfigList": [
      {
        "name": "disconnectTime",
        "encodingType": "DICTIONARY",
        "indexType": "TIMESTAMP",
        "indexTypes": [
          "TIMESTAMP"
        ],
        "timestampConfig": {
          "granularities": [
            "HOUR",
            "DAY",
            "WEEK",
            "MONTH"
          ]
        },
        "indexes": null,
        "tierOverwrites": null
      }
    ],
    "isDimTable": false
  }
}
This is our OFFLINE table configuration
j
are you using pinot offline managed flows?
a
Yes we are keeping the default config
j
can you call this api and check what segments are visible in offline table
Copy code
segments/<tablename>?type=OFFLINE&excludeOverlapping=false
a
there are 1.6k Segments in OFFLINE table
j
Copy code
select $segmentName, count(*)
from tablename
group by $segmentName
limit 100000
check all offline segments are coming in this?