comphead commented on issue #6845:
URL: 
https://github.com/apache/arrow-datafusion/issues/6845#issuecomment-1622459714

   Hi @edandresvan 
   
   you can achieve the same with SQL API
   ```
   ❯ select 1 as "Package";
   +---------+
   | Package |
   +---------+
   | 1       |
   +---------+
   ```
   
   As for Dataframe API you I have checked how Spark does and it renames the 
column as per your suggestion
   ```
   scala> sql("select 1 a").withColumnRenamed("a", "Packe").printSchema
   root
    |-- Packe: integer (nullable = false)
   ```


-- 
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]

Reply via email to