[ 
https://issues.apache.org/jira/browse/BEAM-13269?focusedWorklogId=684754&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-684754
 ]

ASF GitHub Bot logged work on BEAM-13269:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Nov/21 14:35
            Start Date: 22/Nov/21 14:35
    Worklog Time Spent: 10m 
      Work Description: vitaly-ivanov commented on pull request #16005:
URL: https://github.com/apache/beam/pull/16005#issuecomment-975591641


   R: @pabloem @kennknowles 


-- 
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 684754)
    Time Spent: 0.5h  (was: 20m)

> Data exceeds database column capacity error while inserting in fixed length 
> string column
> -----------------------------------------------------------------------------------------
>
>                 Key: BEAM-13269
>                 URL: https://issues.apache.org/jira/browse/BEAM-13269
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-jdbc
>    Affects Versions: 2.33.0
>            Reporter: Vitaly Ivanov
>            Priority: P1
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
>  
> The bug in org.apache.beam.sdk.io.jdbc.JdbcUtil#validateLogicalTypeLength
> {code:java}
> if (length >= maxLimit) {
>   throw new RuntimeException(
>       String.format(
>           "Length of Schema.Field[%s] data exceeds database column capacity",
>           field.getName()));
> }{code}
> Should be
> {code:java}
> if (length > maxLimit) { {code}
> How to reproduce:
>  * Create column with type VARCHAR(4).
>  * Try to insert "Test"
> ER: Success
> AR: Error "Length of Schema.Field[%s] data exceeds database column capacity"



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to