You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be more friendly if we remove the semicolon from the SQL automatically instead of reporting an error. And because most of databases can ignore the semicolon if the input is a single statement, it's reasonable to do so.
To remove the trailing semicolon is not the perfect way, because for such input:
select1;
select2
Calcite report the same error too. So maybe we can remove the trailing semicolon first, and then catch the parse error, if such exception is raised, we should give a clear message saying that multiple statements is not supported.
The text was updated successfully, but these errors were encountered:
for such SQL,
The calcite report the following unfriendly error.
It would be more friendly if we remove the semicolon from the SQL automatically instead of reporting an error. And because most of databases can ignore the semicolon if the input is a single statement, it's reasonable to do so.
To remove the trailing semicolon is not the perfect way, because for such input:
Calcite report the same error too. So maybe we can remove the trailing semicolon first, and then catch the parse error, if such exception is raised, we should give a clear message saying that multiple statements is not supported.
The text was updated successfully, but these errors were encountered: