timsaucer opened a new pull request, #16480:
URL: https://github.com/apache/datafusion/pull/16480

   ## Which issue does this PR close?
   
   - Closes https://github.com/apache/datafusion-python/issues/1144
   - 
   ## Rationale for this change
   
   There is a bug in how we compute the indices to create a schema for. It 
misses the last index *and* it can erroneously create an index 0 when none 
exists.
   
   ## What changes are included in this PR?
   
   Properly handle the `None` case when finding `max` index.
   
   ## Are these changes tested?
   
   Unit test will be added before marking this PR ready. Tested in 
datafusion-python.
   
   ## 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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to