You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pulsar-sql/presto-pulsar/src/main/java/org/apache/pulsar/sql/presto/decoder/protobufnative/PulsarProtobufNativeColumnDecoder.java
+14-2
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@
50
50
importio.prestosql.spi.type.RowType;
51
51
importio.prestosql.spi.type.RowType.Field;
52
52
importio.prestosql.spi.type.SmallintType;
53
+
importio.prestosql.spi.type.TimestampType;
53
54
importio.prestosql.spi.type.TinyintType;
54
55
importio.prestosql.spi.type.Type;
55
56
importio.prestosql.spi.type.VarbinaryType;
@@ -69,7 +70,8 @@ public class PulsarProtobufNativeColumnDecoder {
69
70
BigintType.BIGINT,
70
71
RealType.REAL,
71
72
DoubleType.DOUBLE,
72
-
VarbinaryType.VARBINARY);
73
+
VarbinaryType.VARBINARY,
74
+
TimestampType.TIMESTAMP);
73
75
74
76
privatefinalTypecolumnType;
75
77
privatefinalStringcolumnMapping;
@@ -192,6 +194,15 @@ public long getLong() {
192
194
returnfloatToIntBits((Float) value);
193
195
}
194
196
197
+
//return millisecond which parsed from protobuf/timestamp
198
+
if (columnTypeinstanceofTimestampType && valueinstanceofDynamicMessage) {
Copy file name to clipboardexpand all lines: pulsar-sql/presto-pulsar/src/main/java/org/apache/pulsar/sql/presto/decoder/protobufnative/PulsarProtobufNativeRowDecoderFactory.java
0 commit comments