[hotfix-#1119][pgsql] Connection cast-exception when use greenplum sink. by FlechazoW · Pull Request #1120 · DTStack/chunjun

@FlechazoW

Purpose of this pull request

Fix the issue of throwing connection cast-exception when use greenplum-writer.

Which issue you fix

Fixes # (1119).

Checklist:

  • I have executed the 'mvn spotless:apply' command to format my code.
  • I have a meaningful commit message (including the issue id, the template of commit message is '[label-type-#issue-id][fixed-module] a meaningful commit message.')
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have checked my code and corrected any misspellings.
  • My commit is only one. (If there are multiple commits, you can use 'git squash' to compress multiple commits into one.)

@FlechazoW

…t-exception when use greenplum-writer.

@FlechazoW FlechazoW linked an issue

Aug 7, 2022

that may be closed by this pull request

3 tasks

@zlj921020

并没有修复啊,还是包类型转换错误Caused by: java.lang.ClassCastException: com.pivotal.jdbc.greenplumbase.ddu cannot be cast to org.postgresql.core.BaseConnection,greenplum的版本:5.21.0

@zlj921020

只要是greenplum作为目标端的都报驱动找不到,但是只有gp到gp的就可以,怀疑是源端的gp是能加载进来的,导致目标的不加载也能运行

@Paddy0523

只要是greenplum作为目标端的都报驱动找不到,但是只有gp到gp的就可以,怀疑是源端的gp是能加载进来的,导致目标的不加载也能运行
是什么模式下运行的呢,方便贴一下脚本么