lwhay / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

A Dataset should only be partitioned using an acceptable key type #383

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Currently, we allow partitioning a dataset on a key if the type of the key can 
be hash partitioned. Otherwise, an exception thrown saying a hash function for 
this type is not implemented. This can allow partitioning a dataset on a key 
type that does not make sense, such as the rectangle type which has a hash 
function so that we can use the spatial-cell function.

We should change this to check even earlier against a list of acceptable types 
that we can use for partitioning, and show a nicer error message.

Original issue reported on code.google.com by salsuba...@gmail.com on 22 Apr 2013 at 8:05

GoogleCodeExporter commented 9 years ago
I have been planning to fix the error message issue together with issue 363, as 
it shows the same "meaningless" exception message there. Actually Mike has 
suggested me also fix the exception message for also the arithmetic operations. 

About the indexing, does this mean that even the exception is thrown, the 
partitioning is still done on that type?

Original comment by jarod...@gmail.com on 22 Apr 2013 at 8:20

GoogleCodeExporter commented 9 years ago

Original comment by zheilb...@gmail.com on 22 Apr 2013 at 8:57

GoogleCodeExporter commented 9 years ago
The dataset is not going to be created if an exception has been thrown.

Original comment by salsuba...@gmail.com on 22 Apr 2013 at 10:01