Use BATcopy to return an input bat. This should set some trivial properties if they weren't set by the input, such as (rev)sorted in case the bat has length 1.
Use BATcopy to return an input bat.
This should set some trivial properties if they weren't set by the
input, such as (rev)sorted in case the bat has length 1.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb