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
When attempting to execute the following 2 VerdictDB queries back to back:
VerdictSingleResult result = verdict.sql("select count() from mydefault.lineitem_scramble");
VerdictSingleResult result1 = verdict.sql("select count() from mydefault.lineitem_scramble where l_linenumber>2");
Encountered the following error:
rg.verdictdb.exception.VerdictDBDbmsException: Issued the following query: create schema verdictdbtemp
org.apache.hadoop.hive.metastore.api.AlreadyExistsException: Database verdictdbtemp already exists;
at org.verdictdb.connection.SparkConnection.executeSingle(SparkConnection.java:166)
at org.verdictdb.connection.SparkConnection.execute(SparkConnection.java:148)
at org.verdictdb.connection.CachedDbmsConnection.execute(CachedDbmsConnection.java:49)
at org.verdictdb.connection.DbmsConnection.execute(DbmsConnection.java:41)
at org.verdictdb.coordinator.SelectQueryCoordinator.process(SelectQueryCoordinator.java:128)
at org.verdictdb.coordinator.ExecutionContext.streamSelectQuery(ExecutionContext.java:400)
at org.verdictdb.coordinator.ExecutionContext.sqlSelectQuery(ExecutionContext.java:323)
at org.verdictdb.coordinator.ExecutionContext.sql(ExecutionContext.java:166)
at org.verdictdb.VerdictContext.sql(VerdictContext.java:388)
at org.verdictdb.connection.SparkQueryResultTest.testSparkQueryResultValues(SparkQueryResultTest.java:139)
The text was updated successfully, but these errors were encountered:
Here's the problem diagnosis:
The Temporary schema gets created in SelectQueryCoordinator and problem is here:
// create scratchpad schema if not existsif (!conn.getSchemas().contains(scratchpadSchema)) {
log.info(
String.format(
"The schema for temporary tables (%s) does not exist; so we create it.",
scratchpadSchema));
CreateSchemaQuerycreateSchema = newCreateSchemaQuery(scratchpadSchema);
conn.execute(createSchema);
}```
soforSpark, 1) thecheckintheifstatementisnotworkingcorrectly; and2) createSchemadoesnotuse `IFNOTEXISTS` hencecausingtheerror
When attempting to execute the following 2 VerdictDB queries back to back:
VerdictSingleResult result = verdict.sql("select count() from mydefault.lineitem_scramble");
VerdictSingleResult result1 = verdict.sql("select count() from mydefault.lineitem_scramble where l_linenumber>2");
Encountered the following error:
rg.verdictdb.exception.VerdictDBDbmsException: Issued the following query: create schema verdictdbtemp
org.apache.hadoop.hive.metastore.api.AlreadyExistsException: Database verdictdbtemp already exists;
The text was updated successfully, but these errors were encountered: