Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DISTINCT - COUNT Combination Reg. #32

Open
csdharma opened this issue Mar 18, 2017 · 2 comments
Open

DISTINCT - COUNT Combination Reg. #32

csdharma opened this issue Mar 18, 2017 · 2 comments

Comments

@csdharma
Copy link

Hi,
I am using the driver for the past 6 months and working fine. Now there is a requirement which is not supported by the driver. When we try to query case like SELECT COUNT(DISTINCT(INVOICE_NUMBER)) FROM FACT_TABLE the condition fails and does not return any value. This requirement is for capturing the count of unique invoice from FACT Table as the FACT table is denormalised with both header and line level transaction records. The COUNT(DISTINCT(<COL_NAME>)) can occur more than once in query as well. Can you please help us in getting this accomplished. Thanks.

@standino
Copy link

standino commented Mar 18, 2017

same with #30

@csdharma
Copy link
Author

I have seen #30. I am using elasticsearch 2.3.3 and tried using the count(distinct colname) query but no response. There is a chance that we might be using more than one aggregation as well like..
select count(distinct col1), count(distinct col2) from table.

It will be very easy for us if the driver supports. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants