aliyun / aliyun-odps-jdbc

JDBC Driver for ODPS
Other
125 stars 38 forks source link

[BUG]Cannot get corrent resultSetMetaData when disable useInstanceTunnel #114

Closed njujianglan closed 3 years ago

njujianglan commented 3 years ago

Describe the bug 开启interactiveMode 关闭useInstanceTunnel时,resultSetMetaData中的columnType全部变成了String,丢失了正确的类型

To Reproduce SQL: select count(a), x from (select 1.0 as a,1 as x) as y group by x 期望的结果是:BIGINT, BIGINT 目前返回结果:STRING, STRING

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

cornmonster commented 3 years ago

不走instance tunnel时获取结果仅支持用于屏幕显示,不支持进行进一步运算,因此schema均为String

这个issue后续我们会进行优化