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

add functions to extract clause from boolean expressions #162

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

add functions to extract clause from boolean expressions #162

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 5, 2016

Right now you can't filter some foreign data using the boolean column. I have added several function to src/query.c to extract data from expressions of this type. I have tested them with all boolean comparison constructions (e.g. is not false, is true, is not unknown), operators (e.g. =, <>) and possible literal values (e.g. 't', 'yes', 'off', 0, 1) and they works well for me.

- extractClauseFromBooleanTest()
- extractClauseFromBoolExpr()
- extractClauseFromVar()
@kmorning
Copy link

After searching a little while, without finding a solution, as to why I was getting 'WARNING: unsupported expression for extractClauseFrom' when trying to filter against a boolean column, I came across this pull request. I applied this patch to 1.4.0 and I can now apply qualifier logic for my boolean column in my python logic.
I'm wondering if there's any reason this hasn't been pulled into the main branch, as it seems to work beautifully, and I'm sure others must have run into this issue, as it took me all of one day using multicorn to hit this wall.

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.

2 participants