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

VALUESPLIT does not split boolean values as expected #1268

Closed
nsteinmetz opened this issue Jun 23, 2023 · 0 comments
Closed

VALUESPLIT does not split boolean values as expected #1268

nsteinmetz opened this issue Jun 23, 2023 · 0 comments

Comments

@nsteinmetz
Copy link

Hi there,

VALUESPLIT does not split series with booleans as it did for other values:

NEWGTS
1000000 NaN NaN NaN true ADDVALUE
2000000 NaN NaN NaN false ADDVALUE
3000000 NaN NaN NaN true ADDVALUE
4000000 NaN NaN NaN true ADDVALUE
5000000 NaN NaN NaN false ADDVALUE
6000000 NaN NaN NaN false ADDVALUE
7000000 NaN NaN NaN false ADDVALUE
8000000 NaN NaN NaN true ADDVALUE
9000000 NaN NaN NaN false ADDVALUE
10000000 NaN NaN NaN true ADDVALUE
'split-label'
VALUESPLIT 

It would output 7 GTS whereas I expected only 2 (all the truthy in one GTS, all the falsy in one GTS). Seems it regroups by consecutives values only, not globally

whereas :

NEWGTS
'test name' RENAME
{ 'label0' '42' 'label1' 'foo' } RELABEL
100  NaN NaN NaN 10 ADDVALUE
400  NaN NaN NaN 10 ADDVALUE
500  NaN NaN NaN  6 ADDVALUE
700  NaN NaN NaN  6 ADDVALUE
800  NaN NaN NaN  6 ADDVALUE
900  NaN NaN NaN  6 ADDVALUE
1000 NaN NaN NaN  4 ADDVALUE
1100 NaN NaN NaN  4 ADDVALUE
200  NaN NaN NaN 10 ADDVALUE
300  NaN NaN NaN 10 ADDVALUE
'split-label'
VALUESPLIT

will output 3 GTS (one for 10, one for 6, one for 4) as expected.

Thanks

hbs added a commit that referenced this issue Jun 30, 2023
Fixes #1268 and a bug in the values output by VALUESPLIT
@hbs hbs closed this as completed in f3cb719 Jun 30, 2023
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