byteink opened a new pull request, #6628:
URL: https://github.com/apache/arrow-datafusion/pull/6628

   # Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and 
enhancements and this helps us generate change logs for our releases. You can 
link an issue to this PR using the GitHub syntax. For example `Closes #123` 
indicates that this PR will close issue #123.
   -->
   
   Closes #.
   
   # Rationale for this change
   
   Currently, the order of the specified column names for INSERT must match the 
order of the column names in the table.
   
   For example, the following statement cannot be executed successfully
   ```shell
   DataFusion CLI v26.0.0
   ❯ create table t(a int, b int);
   0 rows in set. Query took 0.028 seconds.
   ❯ insert into t(b,a) values(2,1);
   Error during planning: Inserting query must have the same schema with the 
table.
   ```
   To address this issue, we can rearrange the order of the INSERT fields so 
that they align with the table fields.
   
   
   # What changes are included in this PR?
   
   <!--
   There is no need to duplicate the description in the issue here but it is 
sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   # Are these changes tested?
   
   Yes
   
   # Are there any user-facing changes?
   No


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