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

请教关于Greenplum roaring bitmap的问题 #43

Open
changyuezhou opened this issue Oct 22, 2018 · 0 comments
Open

请教关于Greenplum roaring bitmap的问题 #43

changyuezhou opened this issue Oct 22, 2018 · 0 comments

Comments

@changyuezhou
Copy link

hi,您好!
我在尝试使用"Greenplum roaring bitmap与业务场景 (类阿里云RDS PG varbitx, 应用于海量用户 实时画像和圈选、透视)"文章提到的方法优化查询时,Master 执行PREFUNC时,遇到了一个段错误,定位到代码错误位置在如下代码:

// Is the second argument non-null?
if (!PG_ARGISNULL(1)) {

    **r2 = (roaring_bitmap_t *) PG_GETARG_POINTER(1);**  

    if (PG_ARGISNULL(0)) {  
        r1 = roaring_bitmap_copy(r2);  
    } else {  
        roaring_bitmap_and_inplace(r1, r2);  
    }  
    roaring_bitmap_free(r2);  
}  

其中获取的变量 r2 在使用时,会引起段错误,猜想是内存访问越界或者内存数据结构错误导致的,我使用的 Greenplum 版本是 5.11.1 PostgreSQL 8.3 。
您遇到过这样的问题么?

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

No branches or pull requests

1 participant