Xiang Fu
Chinmay Soman
03/16/2021, 7:01 PMChinmay Soman
03/16/2021, 10:44 PMYupeng Fu
03/16/2021, 10:45 PMzongxing hu
06/22/2021, 12:28 PMPrateek Singhal
10/13/2021, 10:01 PMAlice
04/28/2022, 1:17 AMAlice
04/28/2022, 1:18 AMNeha Pawar
Neha Pawar
Alice
04/28/2022, 2:50 AMYupeng Fu
04/28/2022, 3:14 AMYupeng Fu
04/28/2022, 3:14 AMTommaso Garuglieri
06/19/2022, 4:09 PMseg_<partition_a>_<partition_b>...
but this is not supported at the moment.
Is there any workaround, eg. custom segment name gen. implementation that we can leverage inside the flink ingestion job ?reallyonthemove tous
11/24/2022, 12:26 AMRong R
11/28/2022, 5:27 PMRong R
11/28/2022, 5:27 PMreallyonthemove tous
11/28/2022, 5:32 PMreallyonthemove tous
11/28/2022, 5:35 PMRong R
11/28/2022, 6:40 PMreallyonthemove tous
11/28/2022, 10:18 PMRong R
11/30/2022, 5:46 AMHarshit
01/04/2023, 12:17 PMCould not find index for column: gKey, type: FORWARD_INDEX, segment: /tmp/data/pinotServerData/key1_OFFLINE/key1_3_
Schema
{
"schemaName": "key",
"dimensionFieldSpecs": [
{
"name": "rootKey",
"dataType": "STRING"
},
{
"name": "gKey",
"dataType": "STRING"
}
],
"primaryKeyColumns": [
"gKey"
]
}
Table config
{
"tableName": "key",
"tableType": "OFFLINE",
"isDimTable": true,
"segmentsConfig": {
"schemaName": "key",
"segmentPushType": "REFRESH",
"replication": "1"
},
"tenants": {},
"tableIndexConfig": {
"loadMode": "MMAP"
},
"metadata": {
"customConfigs": {}
},
"quota": {
"storage": "200M"
}
}
Rashmin Patel
03/17/2023, 6:48 AMCaused by: java.lang.NullPointerException: Failed to get partition id for segment: my_flink_sink_test_1678965238000_1678965238000_0_0 (upsert-enabled table: my_flink_sink_test_REALTIME)
at org.apache.pinot.shaded.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033]
at org.apache.pinot.core.data.manager.realtime.RealtimeTableDataManager.handleUpsert(RealtimeTableDataManager.java:410) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033]
After diving into pinot's codebase, it looks like that SegmentUtils.getRealtimeSegmentPartitionId
is returning null because it has a below check on the segmentName.
String[] parts = StringUtils.splitByWholeSeparator(segmentName, SEPARATOR); // SEPARATOR is `__`
if (parts.length != 4) {
return null;
}
While the segment name (my_flink_sink_test_1678965238000_1678965238000_0_0
) being generated in our case has _
(single underscore) and hence it returns null.
Env details:
pinot-flink-connector version: 0.11.0
What could be the reason for this ? Any pointers/help on this will be appreciated πXiang Fu
Lakshmi Rao
03/29/2023, 5:25 AM