Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

impala-shell

avatar
Contributor

i am trying to translate the query which is in sql working on oracle.

the query goes like this,

select MAX(NANVL(Column name,0)) OVER (partition by x, y) as z from table name 

  I would like to do the same using impala-shell on kudu-table because when i performed i got the following exception


ERROR: AnalysisException: default.nanvl() unknown
Thanks in advance

1 ACCEPTED SOLUTION

avatar
Champion

@HJ

 

Not sure which version of impala, CDH you are using

 

NANVL in-build function is available in oracle but impala does not support (as of CDH 5.14 version)

 

Below is the link for CDH 5.14 shows all the available conditional functions, which has NVL, NVL2 but not NANVL. You may need to write your custom function to meet this part

 

https://www.cloudera.com/documentation/enterprise/5-14-x/topics/impala_conditional_functions.html

 

 

View solution in original post

2 REPLIES 2

avatar
Champion

@HJ

 

Not sure which version of impala, CDH you are using

 

NANVL in-build function is available in oracle but impala does not support (as of CDH 5.14 version)

 

Below is the link for CDH 5.14 shows all the available conditional functions, which has NVL, NVL2 but not NANVL. You may need to write your custom function to meet this part

 

https://www.cloudera.com/documentation/enterprise/5-14-x/topics/impala_conditional_functions.html

 

 

avatar
Contributor

thank you for the solution, i have a sql query which has group by roll up clause and it goes like following.

from tablename group by rollup(decode(-----some expression here-----),decode(some expression here),decode (some expression here))

as i said i have to modify the query where the query work on kudu using impala shell,

when i performed the query i got the follwing exception,

 

ERROR: AnalysisException: default.rollup() unknown

 

please help me with what has to be done in this case

 

thank you