momo-jun commented on code in PR #18434: URL: https://github.com/apache/pulsar/pull/18434#discussion_r1046633060
########## site2/docs/schema-understand.md: ########## @@ -48,92 +46,227 @@ Pulsar supports various schema types, which are mainly divided into two categori The following table outlines the primitive types that Pulsar schema supports, and the conversions between **schema types** and **language-specific primitive types**. -| Primitive Type | Description | Java Type| Python Type | Go Type | -|---|---|---|---|---| -| `BOOLEAN` | A binary value | boolean | bool | bool | -| `INT8` | A 8-bit signed integer | int | | int8 | -| `INT16` | A 16-bit signed integer | int | | int16 | -| `INT32` | A 32-bit signed integer | int | | int32 | -| `INT64` | A 64-bit signed integer | int | | int64 | -| `FLOAT` | A single precision (32-bit) IEEE 754 floating-point number | float | float | float32 | -| `DOUBLE` | A double-precision (64-bit) IEEE 754 floating-point number | double | float | float64| -| `BYTES` | A sequence of 8-bit unsigned bytes | byte[], ByteBuffer, ByteBuf | bytes | []byte | -| `STRING` | A Unicode character sequence | string | str | string| -| `TIMESTAMP` (`DATE`, `TIME`) | A logic type represents a specific instant in time with millisecond precision. <br />It stores the number of milliseconds since `January 1, 1970, 00:00:00 GMT` as an `INT64` value | java.sql.Timestamp (java.sql.Time, java.util.Date) | | | -| INSTANT | A single instantaneous point on the time-line with nanoseconds precision| java.time.Instant | | | -| LOCAL_DATE | An immutable date-time object that represents a date, often viewed as year-month-day| java.time.LocalDate | | | -| LOCAL_TIME | An immutable date-time object that represents a time, often viewed as hour-minute-second. Time is represented to nanosecond precision.| java.time.LocalDateTime | | -| LOCAL_DATE_TIME | An immutable date-time object that represents a date-time, often viewed as year-month-day-hour-minute-second | java.time.LocalTime | | +| Primitive Type | Description | Java Type| Python Type | Go Type | C++ Type | C# Type| +|---|---|---|---|---|---|---| +| `BOOLEAN` | A binary value. | boolean | bool | bool | bool | bool | +| `INT8` | A 8-bit signed integer. | int | int | int8 | int8_t | byte | +| `INT16` | A 16-bit signed integer. | int | int | int16 | int16_t | short | +| `INT32` | A 32-bit signed integer. | int | int | int32 | int32_t | int | +| `INT64` | A 64-bit signed integer. | int | int | int64 | int64_t | long | +| `FLOAT` | A single precision (32-bit) IEEE 754 floating-point number. | float | float | float32 | float | float | +| `DOUBLE` | A double-precision (64-bit) IEEE 754 floating-point number. | double | double | float64| double | double | +| `BYTES` | A sequence of 8-bit unsigned bytes. | byte[], ByteBuffer, ByteBuf | bytes | []byte | void * | byte[], `ReadOnlySequence<byte>` | Review Comment: Great! It works! Thank you so much! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
