T
TypeDB•2mo ago
kenho811

< Column Order in Select Stage ??>

< Column Order in Select Stage ??>
4 Replies
kenho811
kenho811OP•2mo ago
I have this query to look at my data.
match $a isa attributed-entity, has typedb-label $al;
$_ isa entity-owns-attribute-attribution, links(attributed-entity: $a, attributed-attribute: $b);
$b has typedb-label $bl, has typedb-description $bd;
$al == 'organisation';
select $al, $bl, $bd;
sort $bl;
match $a isa attributed-entity, has typedb-label $al;
$_ isa entity-owns-attribute-attribution, links(attributed-entity: $a, attributed-attribute: $b);
$b has typedb-label $bl, has typedb-description $bd;
$al == 'organisation';
select $al, $bl, $bd;
sort $bl;
I am doing some data exploration. When I run the query several times, the order of the columns change. It looks like that the order of the variables in select does not matter. For the ease of use, is it possible that the output table in the studio displays the data in the same order in the select ?
No description
Joshua
Joshua•2mo ago
Lol @alex that is timely The select is order agnostic, its just a filter right now! We could make it the order but it isn't right now
alex
alex•2mo ago
hahaha i noticed the exact same thing by chance yesterday
Joshua
Joshua•2mo ago
Treat select like 'filter' right now @kenho811 🙂

Did you find this page helpful?