mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 16:30:44 +01:00
fix build
This commit is contained in:
1 parent
4e4e3ce1a8
commit
b2016ab9b6
1 file changed
+3
-3
@@ -78,7 +78,7 @@ func GenParquetReadFunc(filerClient filer_pb.FilerClient, t topic.Topic, p topic
|
||||
recordType = schema.NewRecordTypeBuilder(recordType).
|
||||
WithField(SW_COLUMN_NAME_TS, schema.TypeInt64).
|
||||
WithField(SW_COLUMN_NAME_KEY, schema.TypeBytes).
|
||||
WithField(SW_COLUMN_NAME_INDEX, schema.TypeInt64).
|
||||
WithField(SW_COLUMN_NAME_OFFSET, schema.TypeInt64).
|
||||
RecordTypeEnd()
|
||||
|
||||
parquetLevels, err := schema.ToParquetLevels(recordType)
|
||||
@@ -124,8 +124,8 @@ func GenParquetReadFunc(filerClient filer_pb.FilerClient, t topic.Topic, p topic
|
||||
|
||||
// Get offset from parquet, default to 0 if not present (backward compatibility)
|
||||
var offset int64 = 0
|
||||
if indexValue, exists := recordValue.Fields[SW_COLUMN_NAME_INDEX]; exists {
|
||||
offset = indexValue.GetInt64Value()
|
||||
if offsetValue, exists := recordValue.Fields[SW_COLUMN_NAME_OFFSET]; exists {
|
||||
offset = offsetValue.GetInt64Value()
|
||||
}
|
||||
|
||||
logEntry := &filer_pb.LogEntry{
|
||||
|
||||
Reference in new issue
Block a user