Created on 07-18-2019 03:31 AM - edited 09-16-2022 07:31 AM
sql1
select nick_name as nickName from customer where tenant_id = 29 and id in (:ids)
the column label in resultSetColumnMeta is nickName
sql2
select nick_name as nickName from customer where tenant_id = 29 and id in (:ids) limit 10
the column label in resultSetColumnMeta is nickname
I use NamedParameterJdbcTemplate to execute query and set LowerCaseResultSetColumnName 0!
Created 07-18-2019 06:14 PM
Created 07-18-2019 06:56 PM
column label in result set should not be lowercase while set LowerCaseResultSetColumnName to 0
Created 07-18-2019 09:12 PM
Created 07-18-2019 10:00 PM
1. I use impala-jdbc
2. I set LowerCaseResultSetColumnName for all query, and the result of sql2 is correct.
the url setting:
spring.datasource.url=jdbc:impala://localhost:21050/cdp_prod;SocketTimeout=5;LowerCaseResultSetColumnName=0
execute sql1:
String sql = "select nick_name as nickName from customer where tenant_id = 29 and id in (:ids)"; MapSqlParameterSource sqlParameterSource = new MapSqlParameterSource(); List<Long> ids = new ArrayList<>(); ids.add(484599978900144160l); ids.add(484599978900144159l); sqlParameterSource.addValue("ids", ids); List<Map<String, Object>> customers = namedJdbcTemplate.queryForList(sql, sqlParameterSource);
execute sql2:
String sql = "select nick_name as nickName from customer where tenant_id = 29 and id in (:ids) limit 10"; MapSqlParameterSource sqlParameterSource = new MapSqlParameterSource(); List<Long> ids = new ArrayList<>(); ids.add(484599978900144160l); ids.add(484599978900144159l); sqlParameterSource.addValue("ids", ids); List<Map<String, Object>> customers = namedJdbcTemplate.queryForList(sql, sqlParameterSource);
Created 07-18-2019 10:40 PM
Created on 07-19-2019 02:30 AM - edited 07-19-2019 02:31 AM
I am not sure. May be
impala-jdbc:1.0.0
How can I get new version impala jdbc driver?
I can not found in maven repo
Created 07-19-2019 04:51 PM
Created 07-23-2019 07:29 PM
Sorry, the version of impala jdbc is 2.5.41.1061
I think it is not so early
Created 07-24-2019 04:39 AM