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

Clickhouse as datasource support #53

Closed
Slach opened this issue Jul 28, 2021 · 4 comments · Fixed by #120
Closed

Clickhouse as datasource support #53

Slach opened this issue Jul 28, 2021 · 4 comments · Fixed by #120
Labels
connection enhancement New feature or request

Comments

@Slach
Copy link
Contributor

Slach commented Jul 28, 2021

Describe the solution you'd like
I'd love to give CueObserve a try but our warehouse is currently in MS SQL Server.

Describe the solution you'd like
Add ClickHouse as a supported data source.

I will wait when #52 will resolve and try to implements PR

@sachinkbansal sachinkbansal added connection enhancement New feature or request labels Jul 29, 2021
@sachinkbansal
Copy link
Contributor

sachinkbansal commented Jul 29, 2021

We can use ClickHouse Playground to test this. Credentials at https://clickhouse.tech/docs/en/getting-started/playground/.

Sample Dataset SQL

select
  date_trunc('hour', date_add(day, date_diff(day, toDate('2014-03-23'), today()), EventTime)) as NewEventTime,
  MobilePhoneModel,
  count(1) as Hits
from hits_v1
GROUP BY
  date_trunc('hour', date_add(day, date_diff(day, toDate('2014-03-23'), today()), EventTime)), MobilePhoneModel
order by date_trunc('hour', date_add(day, date_diff(day, toDate('2014-03-23'), today()), EventTime))
select
  date_trunc('hour', date_add(day, date_diff(day, toDate('2014-03-23'), today()), EventTime)) as NewEventTime,
  RegionID,
  OS,
  count(1) as Hits
from hits_v1
GROUP BY
  date_trunc('hour', date_add(day, date_diff(day, toDate('2014-03-23'), today()), EventTime)), RegionID, OS
order by date_trunc('hour', date_add(day, date_diff(day, toDate('2014-03-23'), today()), EventTime))

@sachinkbansal
Copy link
Contributor

@Slach #52 is now closed. Would you want to pick this up?

@Slach
Copy link
Contributor Author

Slach commented Aug 18, 2021

@sachinkbansal unfortunately, I don't have enough time to pick up this issue
could you share the link to commit or PR where your team implements #52?

@sachinkbansal
Copy link
Contributor

here it is #104

Slach added a commit to Slach/CueObserve that referenced this issue Aug 22, 2021
Slach added a commit to Slach/CueObserve that referenced this issue Aug 22, 2021
Signed-off-by: Slach <bloodjazman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connection enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants