You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladislav Pyatkov (Jira)" <ji...@apache.org> on 2022/03/11 07:54:00 UTC
[jira] [Created] (IGNITE-16679) Table creates earlier then the table create event is handled
Vladislav Pyatkov created IGNITE-16679:
------------------------------------------
Summary: Table creates earlier then the table create event is handled
Key: IGNITE-16679
URL: https://issues.apache.org/jira/browse/IGNITE-16679
Project: Ignite
Issue Type: Bug
Reporter: Vladislav Pyatkov
The table is assumed ready just after the TableImpl object hits the internal collection in TableManager, but the table event (CREATE) happen after.
It leads to bugs into SQL, because the component construct a Calcite schema by the event:
{noformat}
class org.apache.ignite.lang.IgniteInternalException: Failed to validate query. org.apache.calcite.runtime.CalciteContextException: From line 1, column 13 to line 1, column 17: Object 'TEST1' not found
at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.prepareSingle(PrepareServiceImpl.java:100)
at org.apache.ignite.internal.sql.engine.SqlQueryProcessor.lambda$query0$6(SqlQueryProcessor.java:284)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.calcite.tools.ValidationException: org.apache.calcite.runtime.CalciteContextException: From line 1, column 13 to line 1, column 17: Object 'TEST1' not found
at org.apache.ignite.internal.sql.engine.prepare.IgnitePlanner.validate(IgnitePlanner.java:164)
at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.prepareDml(PrepareServiceImpl.java:152)
at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.prepareSingle(PrepareServiceImpl.java:89)
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)