# Minus function issue in Dremio sql editor

**URL:** <https://community.dremio.com/t/minus-function-issue-in-dremio-sql-editor/995>\
**Category:** Uncategorized\
**Created:** [April 18, 2018, 3:55pm UTC](https://community.dremio.com/t/minus-function-issue-in-dremio-sql-editor/995 "2018-04-18T15:55:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramranga1](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@ramranga1](https://community.dremio.com/u/ramranga1)\
**Post date:** [April 18, 2018, 3:55pm UTC](https://community.dremio.com/t/minus-function-issue-in-dremio-sql-editor/995/1 "2018-04-18T15:55:40Z")

</div>

While running the MINUS query I am getting below error.  
**"Failure parsing the query. [line -1, column -1]"**

The below format of MINUS query we have tried in dremio sql editor.

**query:**  
select coulm1,column2 from azure\_file\_path  
MINUS  
select coulm1,column2 from azure\_file\_path

Please let me know what is the issue with this query or Is there any other syntax for MINUS query in dremio ??

---

<div class="post-metadata">

**Author:** ![Casey](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/casey/32/556_2.png) [@Casey](https://community.dremio.com/u/Casey)\
**Post date:** [April 18, 2018, 8:23pm UTC](https://community.dremio.com/t/minus-function-issue-in-dremio-sql-editor/995/2 "2018-04-18T20:23:29Z")

</div>

The verbose error (under Jobs -\> job details -\> profile -\> error) should show a more complete explanation:

```
  (org.apache.calcite.sql.parser.SqlParseException) MINUS is not allowed under the current SQL conformance level

```

The parser _should_ pass this detailed error to the UI, rather than returning the generic parse error.

Using EXCEPT instead of MINUS, I see a different (but more obvious) error:

```
Dremio doesn't currently support EXCEPT operations.

```

-c.
