According to the JDBC ResultSet docs, ResultSet warnings are set for each row when you call a method on the ResultSet which you haven't done yet in your current code. Also, warnings on multiple rows are appended which is why I added the clearWarning().
Yeah, that was my bad. However, this didn't help. I want to get warnings that I get from impala-shell when warning like below happens. Or at least something that can indicate these warnings to process it properly.
WARNINGS: Error converting column: 0 to DECIMAL(38,15)
Error parsing row: file: hdfs://hdpmigr.gaz.ru:8020/db1/t1/t1.csv, before offset: 52
Method getWarnings() doesn't help, probably there is another method to get it