Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I am trying to get the maximum value of a column which contains INT values.
For that, I am using the following mysql query:
"SELECT COALESCE(MAX(id_partner),0) as id_partner FROM BI_DWH_dimension_partner"
When I launch the job, it raise an error NullPointerException.
You can check that error in the screenshot below.
I also added a screenshot of the table dimension_partner to show that there is data inside so I should'nt get any NullPointerException error.
Thank you for your advice.
row2.partner_id.intValue() + 1
(row2.partner_id != null ? row2.partner_id.intValue() + 1 : 1)