Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sampada0810
Creator
Creator

Direct Query with Impala Db

Hi All,

I am trying to use direct query with Impala ODBC.

I have connected to the db, and using the following Syntax:

DIRECT QUERY

DIMENSION

`Field1`

MEASURE

`Field2`

FROM IMPALA.db.TableA

I have also SET DirectUnicodeStrings=TRUE;

But the above query is not getting executed.

I am getting this error:

[Cloudera][ImpalaODBC] (110) Error while executing a query in Impala: [HY000] : AnalysisException: all DISTINCT aggregate functions need to have the same set of parameters as COUNT(DISTINCT <filed-name>); deviating function: COUNT(DISTINCT <field-name>)

Can anyone help me with this? Am I using the correct syntax?

1 Reply
Anil_Babu_Samineni

How is your function and script looks like. And That Measure consider as Data points only in Direct Discovery. And Can you share application sample with out connection string

CUSTOM CONNECT TO *******;

[DDQ]:

DIRECT QUERY

dimension

"last_name",

"first_name"

detail

"country"

measure

"contact_id"

FROM "public"."DDQ";

SET DirectUnicodeStrings = TRUE;

Note - For me this is working, Can you check from your end whether where you did mistake

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful