question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handle Hive arrays

See original GitHub issue

Version 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Dubrzrcommented, Mar 15, 2017

It works perfectly!! Thank you very much!!

1reaction
serge-ridercommented, Mar 14, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found