You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by "hutiefang76 (via GitHub)" <gi...@apache.org> on 2026/06/21 02:28:37 UTC

[PR] [ISSUE-5130][EC-JDBC] Map NUMERIC columns to decimal [linkis]

hutiefang76 opened a new pull request, #5445:
URL: https://github.com/apache/linkis/pull/5445

   ### What is changed?
   
   This PR fixes PostgreSQL numeric column metadata mapping in the JDBC engine plugin. PostgreSQL reports `numeric` columns as `java.sql.Types.NUMERIC`, but `JDBCHelper.getTypeStr` only mapped `Types.DECIMAL` to Linkis `decimal`, leaving `NUMERIC` as `null`.
   
   The value extraction path already handles `Types.NUMERIC` and `Types.DECIMAL` together, so this change applies the same mapping in the type-name conversion path.
   
   ### Why?
   
   Fixes #5130.
   
   ### Tests
   
   - Reproduced with `mvn -pl linkis-engineconn-plugins/jdbc -am -Dtest=org.apache.linkis.manager.engineplugin.jdbc.executor.JDBCHelperTest -Dsurefire.failIfNoSpecifiedTests=false test`: failed before the fix with `expected: <decimal> but was: <null>`.
   - Passed after the fix with the same command.
   - Passed JDBC unit test set with `mvn -pl linkis-engineconn-plugins/jdbc -am -Dtest=ConnectionManagerTest,ProgressMonitorTest,JDBCErrorCodeSummaryTest,JDBCHelperTest,JdbcParamUtilsTest,JDBCMultiDatasourceParserTest -Dsurefire.failIfNoSpecifiedTests=false test` (13 tests).
   
   Note: direct `mvn -pl linkis-engineconn-plugins/jdbc test` cannot resolve unpublished Linkis 1.9.0 reactor artifacts from the configured mirror in this local environment, so the verified commands use `-am` to build required modules from source.


-- 
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: dev-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


Re: [PR] [ISSUE-5130][EC-JDBC] Map NUMERIC columns to decimal [linkis]

Posted by "casionone (via GitHub)" <gi...@apache.org>.
casionone merged PR #5445:
URL: https://github.com/apache/linkis/pull/5445


-- 
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: dev-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org