Skip to content

Commit

Permalink
[fix] Wrap measurement name in double quotes in timeseries_migrate co…
Browse files Browse the repository at this point in the history
…mmand

Bug:
The READ_QUERY was failing if the measurement name starts with an
integer.
  • Loading branch information
pandafy committed Jan 17, 2025
1 parent 6616870 commit 39751b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
SELECT_QUERY_LIMIT = 1000
WRITE_BATCH_SIZE = 1000
READ_QUERY = (
"SELECT {fields} FROM {measurement}"
"SELECT {fields} FROM \"{measurement}\""
" WHERE content_type='{content_type_key}'"
" AND object_id='{object_id}'"
)
DELETE_QUERY = (
"DROP SERIES FROM {old_measurement}"
"DROP SERIES FROM \"{old_measurement}\""
" WHERE content_type='{content_type_key}'"
" AND object_id='{object_id}'"
)
Expand Down

0 comments on commit 39751b3

Please sign in to comment.