From a25cec63857d4c243d64f9c9b781ea46660a4b00 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Mon, 30 Oct 2023 12:54:00 -0500 Subject: [PATCH] fix(python): Double quote table in influxql syntax: - When quoting the table (measurement) name, use double quotes. Single quotes don't work. --- .../components/steps/python/ExecuteAggregateQuerySql.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/homepageExperience/components/steps/python/ExecuteAggregateQuerySql.tsx b/src/homepageExperience/components/steps/python/ExecuteAggregateQuerySql.tsx index 41507883f4..565cb27ead 100644 --- a/src/homepageExperience/components/steps/python/ExecuteAggregateQuerySql.tsx +++ b/src/homepageExperience/components/steps/python/ExecuteAggregateQuerySql.tsx @@ -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