You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Pascal GILLET (Jira)" <ji...@apache.org> on 2021/06/09 20:52:00 UTC

[jira] [Created] (BEAM-12471) NumberFormatException in BeamTableUtils#autoCastField

Pascal GILLET created BEAM-12471:
------------------------------------

             Summary: NumberFormatException in BeamTableUtils#autoCastField
                 Key: BEAM-12471
                 URL: https://issues.apache.org/jira/browse/BEAM-12471
             Project: Beam
          Issue Type: Bug
          Components: beam-community
    Affects Versions: 2.29.0
         Environment: Java SDK
            Reporter: Pascal GILLET
             Fix For: 2.30.0


{{NumberFormatExceptions}} are thrown in method {{autoCastField}} of class {{org.apache.beam.sdk.extensions.sql.impl.schema.BeamTableUtils}} if the {{rawObj}} param is an empty (or blank) string, for numeric fields (BYTE, INT16, INT32, and FLOAT).

Empty strings were (surprisingly) already covered for INT64 and DOUBLE types only.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)