Open def- opened 2 years ago
I have the same issue, with Apache Hive:
hive_1 | 193/1206 CREATE TABLE "SORT_COLS" (
hive_1 | "SD_ID" bigint NOT NULL,
hive_1 | "COLUMN_NAME" character varying(767) DEFAULT NULL::character varying,
hive_1 | "ORDER" bigint NOT NULL,
hive_1 | "INTEGER_IDX" bigint NOT NULL
hive_1 | );
hive_1 | Error: ERROR: catalog is missing 4 attribute(s) for relid 18045 (state=XX000,code=0)
hive_1 | org.postgresql.util.PSQLException: ERROR: catalog is missing 4 attribute(s) for relid 18045
hive_1 | at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2674)
hive_1 | at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2364)
hive_1 | at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:354)
hive_1 | at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:484)
hive_1 | at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:404)
hive_1 | at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:325)
hive_1 | at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:311)
hive_1 | at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:287)
hive_1 | at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:282)
hive_1 | at sqlline.Commands.execute(Commands.java:823)
hive_1 | at sqlline.Commands.sql(Commands.java:733)
hive_1 | at sqlline.SqlLine.dispatch(SqlLine.java:795)
hive_1 | at sqlline.SqlLine.runCommands(SqlLine.java:1706)
hive_1 | at sqlline.Commands.run(Commands.java:1317)
hive_1 | at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
hive_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:578)
hive_1 | at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
hive_1 | at sqlline.SqlLine.dispatch(SqlLine.java:791)
hive_1 | at sqlline.SqlLine.initArgs(SqlLine.java:595)
hive_1 | at sqlline.SqlLine.begin(SqlLine.java:643)
hive_1 | at org.apache.hadoop.hive.metastore.tools.MetastoreSchemaTool.runSqlLine(MetastoreSchemaTool.java:1034)
hive_1 | at org.apache.hadoop.hive.metastore.tools.MetastoreSchemaTool.runSqlLine(MetastoreSchemaTool.java:1007)
hive_1 | at org.apache.hadoop.hive.metastore.tools.MetastoreSchemaTool.doInit(MetastoreSchemaTool.java:596)
hive_1 | at org.apache.hadoop.hive.metastore.tools.MetastoreSchemaTool.doInit(MetastoreSchemaTool.java:574)
hive_1 | at org.apache.hadoop.hive.metastore.tools.MetastoreSchemaTool.run(MetastoreSchemaTool.java:1273)
hive_1 | at org.apache.hadoop.hive.metastore.tools.MetastoreSchemaTool.main(MetastoreSchemaTool.java:1178)
hive_1 | at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
hive_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:578)
hive_1 | at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
hive_1 | at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
hive_1 | Aborting command set because "force" is false and command failed: "CREATE TABLE "SORT_COLS" (
hive_1 | "SD_ID" bigint NOT NULL,
hive_1 | "COLUMN_NAME" character varying(767) DEFAULT NULL::character varying,
hive_1 | "ORDER" bigint NOT NULL,
hive_1 | "INTEGER_IDX" bigint NOT NULL
hive_1 | );"
hive_1 | Closing: org.postgresql.jdbc.PgConnection
hive_1 | Schema initialization FAILED! Metastore state would be inconsistent !!
hive_1 | Underlying cause: java.io.IOException : Schema script failed, errorcode OTHER
hive_1 | Use --verbose for detailed stacktrace.
hive_1 | *** schemaTool failed ***
Jira Link: DB-2914
Description
lst_2022-07-09_18:16:30_919065.zip This also happened with SQLancer: https://github.com/yugabyte/yugabyte-db/issues/10434