[
https://issues.apache.org/jira/browse/BEAM-11090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17272499#comment-17272499
]
Brian Hulette commented on BEAM-11090:
--------------------------------------
Confirmed this looks better in
https://beam.apache.org/releases/pydoc/2.25.0/apache_beam.typehints.schemas.html
{code}
Python Schema
np.int8 <-----> BYTE
np.int16 <-----> INT16
np.int32 <-----> INT32
np.int64 <-----> INT64
int ------> INT64
np.float32 <-----> FLOAT
np.float64 <-----> DOUBLE
float ------> DOUBLE
bool <-----> BOOLEAN
str/unicode <-----> STRING
bytes <-----> BYTES
ByteString ------> BYTES
Timestamp <-----> LogicalType(urn="beam:logical_type:micros_instant:v1")
Mapping <-----> MapType
Sequence <-----> ArrayType
NamedTuple <-----> RowType
beam.Row ------> RowType
{code}
> typehints.schemas diagram does not render nicely in pydoc
> ---------------------------------------------------------
>
> Key: BEAM-11090
> URL: https://issues.apache.org/jira/browse/BEAM-11090
> Project: Beam
> Issue Type: Bug
> Components: website
> Reporter: Kyle Weaver
> Assignee: Brian Hulette
> Priority: P4
> Fix For: 2.25.0
>
>
> https://beam.apache.org/releases/pydoc/2.24.0/apache_beam.typehints.schemas.html
> Python Schema np.int8 <—–> BYTE np.int16 <—–> INT16 np.int32 <—–> INT32
> np.int64 <—–> INT64 int —/ np.float32 <—–> FLOAT np.float64 <—–> DOUBLE float
> —/ bool <—–> BOOLEAN
--
This message was sent by Atlassian Jira
(v8.3.4#803005)