ArcticDB icon indicating copy to clipboard operation
ArcticDB copied to clipboard

Clearer error messages for mismatched types

Open poodlewars opened this issue 1 year ago • 0 comments
trafficstars

Is your feature request related to a problem? Please describe.

  • Create a dataframe with a string column representing a numeric identifier
  • Query the column using QueryBuilder, but mistakenly using an int in the filter

The user gets an error like,

File "/users/isys/glai/pyenvs/res-new/lib/python3.6/site-packages/arcticdb/version_store/_store.py", line 1686, in _read_dataframe
    return ReadResult(*self.version_store.read_dataframe_version(symbol, version_query, read_query, read_options))
arcticdb_ext.exceptions.InternalException: E_ASSERTION_FAILURE Cannot compare TD<type=UTF_DYNAMIC64, dim=0> to TD<type=UINT32, dim=0> (possible categorical?)

Describe the solution you'd like

  • We should translate the message in to "user-space" a bit more. We can't expect users to translate UTF_DYNAMIC64 in to "Python string"
  • We don't tell the user the affected column (slightly relates to #944 )

poodlewars avatar Dec 11 '23 15:12 poodlewars