brimdata / super

A novel data lake based on super-structured data
https://zed.brimdata.io/
BSD 3-Clause "New" or "Revised" License
1.39k stars 64 forks source link

implement byte type #1316

Closed mccanne closed 4 years ago

mccanne commented 4 years ago

Implement the byte type and add to coercion logic.

mccanne commented 4 years ago

Maybe we should have uint8 and int8?

mccanne commented 4 years ago

We adopted int8 and uint8 ini zng-beta and abandoned byte so this is done. bytes[k] will give a uint8.

philrz commented 4 years ago

Per the previous comment, the change in #1394 was to remove byte from the Primitive Types in the ZNG spec and use uint8 in contexts where we'd previously envisioned byte would be applicable. This is not to be confused with the bytes (plural!) type that remains.

Also per the comment above, the ability to invoke the index operator in ZQL such that "bytes[k] will give a uint8" has yet to be addressed. That is tracked in #1421.