# Manual Raw Reflection, adding a sort produces an error

**URL:** <https://community.dremio.com/t/manual-raw-reflection-adding-a-sort-produces-an-error/894>\
**Category:** Uncategorized\
**Created:** [March 20, 2018, 3:57pm UTC](https://community.dremio.com/t/manual-raw-reflection-adding-a-sort-produces-an-error/894 "2018-03-20T15:57:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dealercrm](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/dealercrm/32/627_2.png) [@dealercrm](https://community.dremio.com/u/dealercrm)\
**Post date:** [March 20, 2018, 3:57pm UTC](https://community.dremio.com/t/manual-raw-reflection-adding-a-sort-produces-an-error/894/1 "2018-03-20T15:57:05Z")

</div>

Any ideas on the below error?  
This is produced as it rebuilds the reflection after clicking on SORT for the id column (an auto increment field in MySQL)  
Without the sort, it is able to build the reflection.

DATA\_WRITE ERROR: Failure while attempting to spill sort data to disk.

SqlOperatorImpl EXTERNAL\_SORT  
Location 0:0:7  
Fragment 0:0

[Error Id: 9db68bd0-e86e-4ba3-b6e7-7ef3f0f22f73 on ip-XXXXXX.ec2.internal:31010]

(java.lang.NullPointerException) Container schema is not set. Either schema was not built, or schema was cleared.  
com.google.common.base.Preconditions.checkNotNull():226

![28%20AM](https://us1.discourse-cdn.com/flex020/uploads/dremio/original/1X/d4d97473a1a1ad6e221e2adbc03450f6c1a9b1de.png)
