'What does the HiveWarehouseConnector executeUpdate() function return?

I can't believe I have to ask this here but there seems to be no documentation on what the HWC actually does. All I can find is that it returns a boolean:

public boolean executeUpdate(String var1)  

But what does that boolean actually mean? Is it a success / failure code?



Solution 1:[1]

From here github, It is used for executing statements directly from the spark Driver to HS2 over a JDBC connection.

The return type boolean indicates if the hive statement run via the JDBC connection succeed or failed.

It is useful for DDL statements like 'create table'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ranger_sim_g