@Override
  public ExecuteResult execute(final ServiceContext serviceContext, final ConfiguredKsqlPlan plan,
                               final boolean restoreInProgress) {
    try {
      final ExecuteResult result = EngineExecutor
          .create(primaryContext, serviceContext, plan.getConfig())
          .execute(plan.getPlan(), restoreInProgress);
      return result;
    } catch (final KsqlStatementException e) {
      throw e;
    } catch (final KsqlException e) {
      // add the statement text to the KsqlException
      throw new KsqlStatementException(
          e.getMessage(),
          e.getMessage(),
          plan.getPlan().getStatementText(),
          e.getCause()
      );
    }
  }
@Test
  public void shouldShowHintWhenFailingToDropTableWithSourceNameWithoutQuotes() {
    // Given:
    setupKsqlEngineWithSharedRuntimeEnabled();
    KsqlEngineTestUtil.execute(
        serviceContext,
        ksqlEngine,
        "create table \"bar\" as select * from test2;",
        ksqlConfig,
        Collections.emptyMap()
    );

    // When:
    final KsqlStatementException e = assertThrows(
        KsqlStatementException.class,
        () -> KsqlEngineTestUtil.execute(
            serviceContext,
            ksqlEngine,
            "drop table bar;",
            ksqlConfig,
            Collections.emptyMap()
        )
    );

    // Then:
    assertThat(e, rawMessage(is(
        "Table BAR does not exist.\n"
            + "Did you mean \"bar\"? Hint: wrap the source name in double quotes to make it case-sensitive.")));
    assertThat(e, statementText(is("drop table bar;")));
  }