QueryDescendants() returning duplicate instances

Recently, i have seen this one feature QueryDescendants() and i wanted to try this new function out on my systems.
and unfortunately, i have seen that the instances in the table where i am recieving through QueryDescendants are returning as duplicate instances. In order to make sure if it’s not my bad, i checked if whenever i run that function, i added a print on top of it and the problem wasn’t that at all.

– Here’s some pictures that how i understood that the bug is related to the function

– And here’s the proof that it returns duplicate assets.

Expected behavior

What i was expecting to happen is just return the assets within the searched attributes once, not duplicates of the same instances.

Thank you for the report.

While we fix the issue, consider using "Instance[$sometext]" or ">>Instance[$sometext]" as your query.

Default top query combinator is already >> so your example results in ">> Instance >> [$sometext]".
This double descendant visit is what incorrectly gives duplicates today.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.