You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "aromanenko-dev (via GitHub)" <gi...@apache.org> on 2023/07/06 08:52:00 UTC
[GitHub] [beam] aromanenko-dev commented on a diff in pull request #27333: JdbcIO.readRows() to handle DECIMAL(10,2) with scale as the proper LogicalType.
aromanenko-dev commented on code in PR #27333:
URL: https://github.com/apache/beam/pull/27333#discussion_r1254132172
##########
sdks/java/io/jdbc/src/test/java/org/apache/beam/sdk/io/jdbc/SchemaUtilTest.java:
##########
@@ -64,15 +64,17 @@ public void testToBeamSchema() throws SQLException {
JdbcFieldInfo.of("boolean_col", Types.BOOLEAN),
JdbcFieldInfo.of("char_col", Types.CHAR, 255),
JdbcFieldInfo.of("date_col", Types.DATE),
- JdbcFieldInfo.of("decimal_col", Types.DECIMAL),
+ JdbcFieldInfo.of("decimal_col", Types.DECIMAL, Integer.MAX_VALUE),
Review Comment:
Why not keep just `JdbcFieldInfo.of("decimal_col", Types.DECIMAL)` for this?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org