feat: 增加pg向量类型字段支持#98
Merged
zhou-hao merged 6 commits intohs-web:4.2from Apr 2, 2026
Merged
Conversation
Contributor
Author
|
@zhou-hao 大佬,麻烦看看这个 |
Member
|
执行了pg相关单元测试没? 增加一个向量相关数据库操作的单元测试? |
Member
|
有没有支持vector字段的相关termbuilder? |
Contributor
Author
有的,准备放在jetlinks-components下面。需要放到这边来吗 |
Member
|
如果针对vector 字段本身有特定操作方式的话就放到这里来 |
zhou-hao
reviewed
Apr 2, 2026
| public static String getVectorColumn(String columnFullName, VectorTermType type, Float[] vector) { | ||
| return PrepareSqlFragments | ||
| .of(columnFullName) | ||
| .addSql(type.getOperation(), "'" + toVectorLiteral(vector) + "'") |
zhou-hao
reviewed
Apr 2, 2026
| .toString(); | ||
| .addSql(type.getOperation(),"?") | ||
| .addParameter(toVectorLiteral(vector)) | ||
| .toRequest() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.