[feature][dingo-calcite] Support view #1278
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
mysql> create view v1 as select * from hybrid_search(
-> text_search(test, text_index, '(description:keyboard OR category:electronics) AND rating:>2', 5),
-> vector(test, feature, array[0.8894774317741394, 0.7277960181236267, 0.692345142364502, 0.47235092520713806, 0.8568729162216187, 0.6647433042526245, 0.3333759307861328, 0.5181455016136169], 5),
-> 0.9,
-> 0.1
-> );
Query OK, 0 rows affected (0.23 sec)
mysql> select * from v1;
+----+-------------+
| ID | RANK_HYBRID |
+----+-------------+
| 2 | 1.517737 |
| 4 | 1.6326844 |
| 1 | 1.6442529 |
| 3 | 0.1 |
+----+-------------+
4 rows in set (0.04 sec)