Skip to content

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

Open
bigshika wants to merge 1 commit intoblacksmithgu:masterfrom
bigshika:master
Open

Bug: Handle null values in slice() with multiple arguments#2554
bigshika wants to merge 1 commit intoblacksmithgu:masterfrom
bigshika:master

Conversation

@bigshika
Copy link
Copy Markdown

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.

2 participants