ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Kuznetsov <akuznet...@apache.org>
Subject Re: Low self-descriptiveness of query exceptions.
Date Fri, 18 Nov 2016 11:53:56 GMT
So, we could analyze a stack trace (somewhere in SQL engine) and prepare
more detailed top message.
>From my point of view it should not be too hard.

Vasiliy, please create issue in JIRA for that.
May be one day it will be fixed :)

On Fri, Nov 18, 2016 at 5:50 PM, Sergi Vladykin <sergi.vladykin@gmail.com>
wrote:

> All we can do here is to propagate error message from H2. Probably it will
> give more details.
>
> Sergi
>
> 2016-11-18 13:31 GMT+03:00 Alexey Kuznetsov <akuznetsov@apache.org>:
>
>> Vasiliy, Pavel.
>>
>> I think it is a usability issue.
>> Not always user has a full stack trace.
>> For example, if I execute this query via some UI tool - in most cases I
>> will see only top level message.
>>
>> I have no idea how hard to implement such functionality.
>>
>> Sergi (as a most expert in SQL engine) could you estimate how hard to fix
>> this?
>>
>>
>> On Fri, Nov 18, 2016 at 5:00 PM, Pavel Tupitsyn <ptupitsyn@apache.org>
>> wrote:
>>
>>> Vasiliy, did you examine the full stack trace?
>>>
>>> I've tried an invalid query and got the following in one of the inner
>>> exceptions:
>>> Caused by: org.h2.jdbc.JdbcSQLException: Table "ORGANIZATION2" not found
>>>
>>> However, I agree that this should be present in the top level exception
>>> message.
>>>
>>> On Fri, Nov 18, 2016 at 10:51 AM, Vasiliy Sisko <vsisko@gridgain.com>
>>> wrote:
>>>
>>>> Hello Igniters.
>>>>
>>>> When I execute query: SELECT * FROM “PersonCache”.Person2 an exception
>>>> with the next text is thrown: “Error: Failed to parse query: ...”.
>>>> That message does not give information about cause of exception.
>>>> Possible message of exception should be like: “Table Person2 does not
>>>> exists”
>>>>
>>>> Is it possible to support such functionality in query engine?
>>>>
>>>> --
>>>> Vasiliy Sisko
>>>> GridGain Systems
>>>> www.gridgain.com
>>>>
>>>
>>>
>>
>>
>> --
>> Alexey Kuznetsov
>>
>
>


-- 
Alexey Kuznetsov

Mime
View raw message