Polypheny-DB
Polypheny-DB copied to clipboard
Remove all Java related errors facing the user
Operating System (Polypheny-DB)
Linux, Windows, macOS
Polypheny-DB Version
v.0.7.0
Affected Areas
DB, UI
Browser
Chrome, Firefox, Safari, Edge, Opera
Client Operating System
No response
Bug description
DISCLAIMER: This is somewhat simply not implemented rather than a Bug but it is desirable to receive clear output in the near future.
Whenever an error occurs the response given to the user should clearly state what was wrong, even syntax wise. However for some cases the Java Error is still returned.
E.g. when creating a table with a type that is not supported or is simply misspelled.
This is a specific example of a response that is not desired but is also valid for others.
Reproduction Steps
Execute a SQL Statement like:
create table dummy (id INTERGER NOT NULL, PRIMARY KEY(id))
Expected Behavior
Return a clear description what the error was and maybe how it can be resolved.
E.g.: in the case described above something like:
line 1 column 5. Type: 'INTERGER' is not a supported PolyType
Relevant log output
Error:
Cannot invoke "org.polypheny.db.type.PolyType.getFamily()" because the return value of "org.polypheny.db.sql.sql.SqlDataTypeSpec.getType()" is null