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

Bug: Handle null values in slice() with multiple arguments #2554

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

Conversation

bigshika
Copy link

I ran into a bug where I had two notes:

Test
---
TestArray: 
---
Test2
---
TestArray: 
- item a
- item b
---

If I run:

dataview
TABLE slice(TestArray)

Both notes are returned.

If I run:

dataview
TABLE slice(TestArray, 0)

Only Test2 is returned.

This behaviour persists even if there's a null check involved on the property. My expectation is that the number of notes returned by the first and second queries would be the same.

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.

1 participant