Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)