Tangruilin commented on PR #8947: URL: https://github.com/apache/arrow-datafusion/pull/8947#issuecomment-1909257248
> > This is a problem that I can not get column data here. > > From example: when `select * from (values (1)) where column1 = 0`, I can not know the column name is column1 here. > > Perhaps we can retrieve the column names from the schema of the physical plan. > > https://github.com/apache/arrow-datafusion/blob/31b9b48b08592b7d293f46e75707aad7dadd7cbc/datafusion-cli/src/exec.rs#L240 > > > And then pass the schema to `print_batches`, using it when batches are empty. > ```rust > let schema = physical_plan.schema(); > print_options.print_batches(&results, &schema, now)?; > ``` I may try the way this week -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
