[BUG] pg14 getCreateTableSql Error
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
調査の方向性
330行目のPostgresqlClient.getCreateTableSqlと355行目のPostgreSQLTest.getCreateTableから始め、次にPostgreSQL 14.2に対して失敗を再現します。存在しないconsrc列を参照しているSQLを調査し、PostgreSQL 14のカタログでgetCreateTableSqlが正常に完了することを確認します。既存のテストがこのバージョンをカバーしていない場合は、関連するテストを追加または更新します。
索引モデルが issue の本文から書いたものです。
説明
数据库版本:14.2 (Debian 14.2-1.pgdg110+1)
postgreSQL 14版本时,postgresql 插件的getCreateTableSql 方法会报错。
com.dtstack.dtcenter.loader.exception.DtLoaderException: SQL execute exception:ERROR: column "consrc" does not exist
建议:Perhaps you meant to reference the column "c.conkey" or the column "c.conbin".
位置:143
at com.dtstack.dtcenter.loader.ClassLoaderCallBackMethod.callbackAndReset(ClassLoaderCallBackMethod.java:36)
at com.dtstack.dtcenter.loader.client.sql.DataSourceClientProxy.getCreateTableSql(DataSourceClientProxy.java:155)
at com.dtstack.dtcenter.loader.client.sql.PostgreSQLTest.getCreateTable(PostgreSQLTest.java:355)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:221)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
Caused by: com.dtstack.dtcenter.loader.exception.DtLoaderException: SQL execute exception:ERROR: column "consrc" does not exist
建议:Perhaps you meant to reference the column "c.conkey" or the column "c.conbin".
位置:143
at com.dtstack.dtcenter.common.loader.common.utils.DBUtil.executeQuery(DBUtil.java:123)
at com.dtstack.dtcenter.common.loader.rdbms.AbsRdbmsClient.executeQuery(AbsRdbmsClient.java:153)
at com.dtstack.dtcenter.common.loader.rdbms.AbsRdbmsClient.executeQuery(AbsRdbmsClient.java:163)
at com.dtstack.dtcenter.common.loader.postgresql.PostgresqlClient.getCreateTableSql(PostgresqlClient.java:330)
at com.dtstack.dtcenter.loader.client.sql.DataSourceClientProxy.lambda$getCreateTableSql$17(DataSourceClientProxy.java:155)
at com.dtstack.dtcenter.loader.ClassLoaderCallBackMethod.callbackAndReset(ClassLoaderCallBackMethod.java:34)
... 25 more
Caused by: org.postgresql.util.PSQLException: ERROR: column "consrc" does not exist
建议:Perhaps you meant to reference the column "c.conkey" or the column "c.conbin".
位置:143
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95)
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
at com.dtstack.dtcenter.common.loader.common.utils.DBUtil.executeQuery(DBUtil.java:98)
... 30 more
- 主要言語
- Java
- スター
- 69
- フォーク
- 47
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DTStack/DatasourceX のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
DTStack/DatasourceX#10 ·
-
使用MySQL的下载器的时候报错 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
DTStack/DatasourceX#8 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
DTStack/DatasourceX#5 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
DTStack/DatasourceX#3 ·
DTStack/DatasourceX の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
checkstyle/test-configs#263 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
1.0.0-alpha2 Type/Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
wso2/dpdp-accelerator#272 ·