Skip to content
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

feat(search): add a flag to dump DOT graphs in FT.EXPLAINSQL #2366

Merged
merged 2 commits into from
Jun 15, 2024

Conversation

PragmaTwice
Copy link
Member

$ redis-cli -p 6666 --raw
127.0.0.1:6666> ft.explainsql 'select * from testidx where a hastag "z" and b < 30' dot
digraph {
  x7fdb3c003940 [ label = "Projection" ];
  x7fdb3c003940 -> x7fdb3c003bf0;
  x7fdb3c003bf0 [ label = "Filter" ];
  x7fdb3c003bf0 -> x7fdb3c003a30;
  x7fdb3c003a30 [ label = "TagFieldScan (z)" ];
  x7fdb3c003a30 -> x7fdb3c003580;
  x7fdb3c003580 [ label = "FieldRef (a)" ];
  x7fdb3c003bf0 -> x7fdb3c003ba0;
  x7fdb3c003ba0 [ label = "NumericCompareExpr (<)" ];
  x7fdb3c003ba0 -> x7fdb3c003aa0;
  x7fdb3c003aa0 [ label = "FieldRef (b)" ];
  x7fdb3c003ba0 -> x7fdb3c003b50;
  x7fdb3c003b50 [ label = "NumericLiteral (30)" ];
  x7fdb3c003940 -> x7fdb3c001b10;
  x7fdb3c001b10 [ label = "SelectClause" ];
}

Copy link

sonarcloud bot commented Jun 15, 2024

@PragmaTwice PragmaTwice merged commit 717e52f into apache:unstable Jun 15, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants