apache_beam.typehints.schemas module¶
Support for mapping python types to proto Schemas and back again.
Python Schema np.int8 <—–> BYTE np.int16 <—–> INT16 np.int32 <—–> INT32 np.int64 <—–> INT64 int —/ np.float32 <—–> FLOAT np.float64 <—–> DOUBLE float —/ bool <—–> BOOLEAN
The mappings for STRING and BYTES are different between python 2 and python 3, because of the changes to str: py3: str/unicode <—–> STRING bytes <—–> BYTES ByteString —/
py2: str will be rejected since it is ambiguous. unicode <—–> STRING ByteString <—–> BYTES