Skip to content

Commit f42417b

Browse files
committed
Remove unnecessary IsInteger call
1 parent 2defbc2 commit f42417b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arrow/extensions/timestamp_with_offset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func isOffsetTypeOk(offsetType arrow.DataType) bool {
4343
case *arrow.Int16Type:
4444
return true
4545
case *arrow.DictionaryType:
46-
return arrow.IsInteger(offsetType.IndexType.ID()) && arrow.TypeEqual(offsetType.ValueType, arrow.PrimitiveTypes.Int16)
46+
return arrow.TypeEqual(offsetType.ValueType, arrow.PrimitiveTypes.Int16)
4747
case *arrow.RunEndEncodedType:
4848
return offsetType.ValidRunEndsType(offsetType.RunEnds()) &&
4949
arrow.TypeEqual(offsetType.Encoded(), arrow.PrimitiveTypes.Int16)

0 commit comments

Comments
 (0)