Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
If my struct column has the data type of struct<string, integer> then what should be the equivalent java object that should be inserted into that struct column? I'm trying the following code...
#2: Post edited
- If my struct column has the data type of struct<string, integer> then what should be the equivalent java object that should be inserted into that struct column?
- I'm trying the following code using HiveRunner
- Object val = ? // what should be this object?
- shell
- .insertInto("source_db", tableName)
- .withColumns(column)
- .addRow(val)
.commit();
- If my struct column has the data type of struct<string, integer> then what should be the equivalent java object that should be inserted into that struct column?
- I'm trying the following code using HiveRunner
- ```java
- Object val = ? // what should be this object?
- shell
- .insertInto("source_db", tableName)
- .withColumns(column)
- .addRow(val)
- .commit();
- ```
#1: Initial revision
How do you insert a struct into a hive table column using HiveRunner?
If my struct column has the data type of struct<string, integer> then what should be the equivalent java object that should be inserted into that struct column? I'm trying the following code using HiveRunner Object val = ? // what should be this object? shell .insertInto("source_db", tableName) .withColumns(column) .addRow(val) .commit();