Handle Hive arrays
See original GitHub issueVersion of DBeaver: 4.0.1 on Ubuntu 16.04
DBeaver seems not to be able to handle hive’s arrays.
I have multiple columns such as:
- gain ARRAY<FLOAT>
- units ARRAY<STRING>
- baseline ARRAY<INT>
and the displayed value in DBeaver when browsing tables is “NULL”. Plus I have the following warning:
Unsupported array type: java.lang.String
org.jkiss.dbeaver.model.exec.DBCException: Unsupported array type: java.lang.String
at org.jkiss.dbeaver.model.impl.jdbc.data.handlers.JDBCArrayValueHandler.getValueFromObject(JDBCArrayValueHandler.java:61)
at org.jkiss.dbeaver.model.impl.jdbc.data.handlers.JDBCArrayValueHandler.getValueFromObject(JDBCArrayValueHandler.java:1)
at org.jkiss.dbeaver.model.impl.jdbc.data.handlers.JDBCComplexValueHandler.fetchColumnValue(JDBCComplexValueHandler.java:50)
at org.jkiss.dbeaver.model.impl.jdbc.data.handlers.JDBCAbstractValueHandler.fetchValueObject(JDBCAbstractValueHandler.java:49)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetDataReceiver.fetchRow(ResultSetDataReceiver.java:106)
at org.jkiss.dbeaver.model.impl.jdbc.struct.JDBCTable.readData(JDBCTable.java:195)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetJobDataRead.run(ResultSetJobDataRead.java:91)
at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Do you think it could be possible to handle arrays?
Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Hive Array Functions, Usage and Examples - DWgeek.com
Hive Array Function ... The very first most used function is array function. This function is used to create array out of integer...
Read more >Hive Collection Functions with Examples
Hive comes with a set of collection functions to work with Map and Array data types. These functions are used to find the...
Read more >ARRAY Complex Type (CDH 5.5 or higher only) | 6.3.x
A complex data type that can represent an arbitrary number of ordered elements. The elements can be scalars or another complex type (...
Read more >Select specific value from Hive array - Stack Overflow
Select specific value from Hive array ... Where OtherID is an array. ... I have researched a ton of parse functions but it...
Read more >Working with Complex Datatypes in Hive
So arrays are an ordered collection of elements of the same type. You could compare them to lists of the same type in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works perfectly!! Thank you very much!!
Hive driver doesn’t support JDBC array but returns arrays as strings. I did some basic string->array translation. This should work ok in read-only mode.
You can check it in new EA version.