The error message is pretty clear that you have PI or Partition Column included in your SQL statement, you need to remove those columns. As you haven't provided the ddl so its difficult to suggest which columns you need to take out.
Share the DDL of the tables included, may be we can pin point the issue!
↧