Feature: Automatically alias column names in Kùzu result when using a.*
#3846
Labels
feature
New features or missing components of existing features
a.*
#3846
API
Python
Description
Tried on version 0.4.3dev57.
When we return all properties in a
MATCH
query and we want to unpack the results into a DataFrame, the convention is to use the.*
syntax as follows:The returned Pandas/Polars DataFrame will have header columns that always contain the variable name to which we bound the node type in the
MATCH
statement (n.id
,n.counts
, etc).Here's how the same thing done in DuckDB will look:
The column names are as per the input CSV file, which is convenient for downstream use.
Desired outcome
Is it possible to automatically alias the column headers in Kùzu when using
a.*
to output all properties as tuples? This would make downstream usage so much easier as the user can just rely on the DataFrame column names being identical to the input CSV/DataFrames upstream.The text was updated successfully, but these errors were encountered: