Skip to content

Commit

Permalink
fix(python): Double quote table in influxql syntax:
Browse files Browse the repository at this point in the history
- When quoting the table (measurement) name, use double quotes. Single quotes don't work.
  • Loading branch information
jstirnaman committed Oct 30, 2023
1 parent 3e1c4a0 commit a25cec6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export const ExecuteAggregateQuerySql = (props: OwnProps) => {
const {bucket} = props

const sqlSnippet = `SELECT mean(count)
FROM 'census'
FROM "census"
WHERE time > now() - 10m`

const querySnippet = `query = """SELECT mean(count)
FROM 'census'
FROM "census"
WHERE time > now() - 10m"""
# Execute the query
Expand Down

0 comments on commit a25cec6

Please sign in to comment.