comphead opened a new issue, #5231:
URL: https://github.com/apache/arrow-datafusion/issues/5231

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   SQLLogic test fails on schema validation when column has mixed null and non 
null values.
   ```
   # log scalar function
   query CC1 rowsort
   select null union all select 1
   
   
   Error: query failed: DataFusion error: Internal error: Schema mismatch. 
Previously had
   Schema {
       fields: [
           Field {
               name: "NULL",
               data_type: Int64,
               nullable: false,
               dict_id: 0,
               dict_is_ordered: false,
               metadata: {},
           },
       ],
       metadata: {},
   }
   
   Got:
   Schema {
       fields: [
           Field {
               name: "NULL",
               data_type: Int64,
               nullable: true,
               dict_id: 0,
               dict_is_ordered: false,
               metadata: {},
           },
       ],
       metadata: {},
   }. This was likely caused by a bug in DataFusion's code and we would welcome 
that you file an bug report in our issue tracker
   ```
   
   
   **Describe the solution you'd like**
   I think we can ignore `nullable` attribute from schema 
   
   **Describe alternatives you've considered**
   Workaround to split queries to avoid mixed nulls and nonnulls
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


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