getredash/redash

Query editor: format query feature breaks syntax of Postgres JSON operator

Open

#5 644 ouverte le 8 nov. 2021

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Python (4 236 forks)batch import
help wanted

Métriques du dépôt

Stars
 (24 845 stars)
Métriques de merge PR
 (Merge moyen 9j 5h) (3 PRs mergées en 30 j)

Description

Issue Summary

Query editor: format query feature breaks syntax of Postgres JSON operator

Steps to Reproduce

  1. WHERE keywords @> '[{"keyword":{"id":12345}}]'
  2. Valid according to: https://www.postgresql.org/docs/12/functions-json.html
  3. Gets formatted as keywords @ > '[{"keyword":{"id":12345}}]'
  4. This is invalid syntax because the @ and > have become separated

Technical details:

  • Redash Version: 10.0.0-beta (92e5d78d)

Guide contributeur