-
Notifications
You must be signed in to change notification settings - Fork 206
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
Tracking Issue: Support influxql raw query #698
Comments
Other difference I found Project clauseColumn name can be quoted in double quotes
It will output string directly in SQL. Source: https://docs.influxdata.com/influxdb/v1.8/query_language/explore-data/ |
As for > SELECT COUNT("water_level") FROM "h2o_feet" WHERE time >= '2015-08-18T00:00:00Z' AND time <= '2015-08-18T00:30:00Z' GROUP BY time(12m),"location"
name: h2o_feet
tags: location=coyote_creek
time count
---- -----
2015-08-18T00:00:00Z 2
2015-08-18T00:12:00Z 2
2015-08-18T00:24:00Z 2
name: h2o_feet
tags: location=santa_monica
time count
---- -----
2015-08-18T00:00:00Z 2
2015-08-18T00:12:00Z 2
2015-08-18T00:24:00Z 2 We can rewrite it to SQL, something like SELECT
to_timestamp_millis(DATE_BIN (INTERVAL '12' minute, timestamp, 0::TIMESTAMP) ) AS groupby_time,
location,
COUNT(`water_level`)
FROM
"h2o_feet"
WHERE
timestamp >= '2015-08-18T00:00:00Z'
AND timestamp <= '2015-08-18T00:30:00Z'
GROUP BY
groupby_time,
location;
Plan to write an optimize rule to do this. Question: does sql parser support |
OK, I add them to the diffrence list. |
This thing is the same as what 6112 they are doing. |
Thanks for your tips. We have forked influxql related logical(parser and planner) into an independent crate already. |
Describe This Problem
We plan to support influxql mainly by converting it to sql in the statement level.
So the first thing to do is to process the difference between influxql and sql.
Difference is listed as following:
General
Projection clause
timestamp key
.table(measurement) name
.group by key
.group by
. feat: support rewrite basic raw query in influxql #683From clause
Group by clause
group by
like: feat: support rewrite basic raw query in influxql #683Order by clause
Proposal
Additional Context
No response
The text was updated successfully, but these errors were encountered: