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

[feature][dingo-calcite] Support view #1278

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

guojn1
Copy link
Contributor

@guojn1 guojn1 commented Oct 31, 2024

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)

@guojn1 guojn1 changed the title [feature][dingo-calcite] Support view 【wip】[feature][dingo-calcite] Support view Oct 31, 2024
@guojn1 guojn1 changed the title 【wip】[feature][dingo-calcite] Support view [feature][dingo-calcite] Support view Nov 1, 2024
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.

1 participant