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

Expression does not evaluate to boolean: got T_NULL #34

Closed
dubreuia opened this issue Aug 25, 2015 · 3 comments
Closed

Expression does not evaluate to boolean: got T_NULL #34

dubreuia opened this issue Aug 25, 2015 · 3 comments
Labels

Comments

@dubreuia
Copy link

Here's a minimal csv test file (named "miller_test.csv"):

"header1","header2"
"value1","value2"

I'm trying to filter on empty header1 column with:

mlr --csv filter '$header1 != ""' miller_test.csv

And I get:

Expression does not evaluate to boolean: got T_NULL.
*** Error in `mlr': munmap_chunk(): invalid pointer: 0x000000000042915d ***
Aborted (core dumped)

I have a fresh master from 5 minutes ago, freshly compiled, on gnome ubuntu 15.04.

@johnkerl
Copy link
Owner

Part of this is double-quoting: #4

For that reason, header1 is named "header1" and isn't appearing. So the second issue (after double-quoting) is filter on non-present fields, which violates Miller's fundamental heterogeneity-tolerance feature (http://johnkerl.org/miller/doc/record-heterogeneity.html).

@johnkerl
Copy link
Owner

Second issue fixed on commit 624841f

First is underway ;)

Thanks for the bug report!!

@dubreuia
Copy link
Author

No problem, thanks for developing miller!

@johnkerl johnkerl removed the on deck label Aug 30, 2015
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