Skip to content

Commit

Permalink
Fix parser error and add explain examples (#2538)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

1. Fix explain error option bug
2. Add explain python examples.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
  • Loading branch information
JinHai-CN authored Mar 5, 2025
1 parent 007127d commit a8082ca
Show file tree
Hide file tree
Showing 3 changed files with 784 additions and 770 deletions.
4 changes: 4 additions & 0 deletions example/simple_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

# import infinity_embedded as infinity
import infinity
from infinity.table import ExplainType
import sys

try:
Expand Down Expand Up @@ -66,6 +67,9 @@
if extra_result is not None:
print(extra_result)

res = table_instance.output(["num", "body", "vec"]).explain(ExplainType.Pipeline)
print(res)

infinity_instance.disconnect()

print('test done')
Expand Down
Loading

0 comments on commit a8082ca

Please sign in to comment.