Navigation Menu

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

in_valuesで127個以上の値を指定したい #760

Closed
kenhys opened this issue Aug 31, 2017 · 2 comments
Closed

in_valuesで127個以上の値を指定したい #760

kenhys opened this issue Aug 31, 2017 · 2 comments
Assignees
Labels

Comments

@kenhys
Copy link
Member

kenhys commented Aug 31, 2017

Problem

[groonga-dev,04449] indexを使ったin_valuesでの不具合 より

https://ja.osdn.net/projects/groonga/lists/archive/dev/2017-August/004452.html

indexを使ったin_values(target, value1, ..., valueN)でvalueNの数が増えると正しい結果を取得できない。
(具体的には126件までしか持ってこれない)

Expected

127件以上指定していても正しい結果を取得できる。

How to reproduce it

groonga -n testdb/db < schema.txt
groonga testdb/db < load.txt
groonga testdb/db < 127.txt

127.txt
load.txt
schema.txt

Additional information

GRN_SCAN_INFO_MAX_N_ARGSの制限に引っかかっているのでvalueNは126個まで。

現状のままだと無理だが、 in_values(column, [1, 2, 3, ...]) みたいに1つのベクターで指定できるようにin_values()を拡張するという案がある。

@kenhys kenhys added the Feature label Aug 31, 2017
@s-yata s-yata self-assigned this Nov 17, 2017
@s-yata s-yata closed this as completed in 96f257c Nov 17, 2017
@s-yata
Copy link
Contributor

s-yata commented Nov 17, 2017

初期のバッファサイズを 16 に減らし,不足したときは動的に拡張するようにしました.

@s-yata
Copy link
Contributor

s-yata commented Nov 24, 2017

初期のバッファから新しいバッファへとコピーし忘れるという致命的なバグを修正しました.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants