Informatica-EIC / Custom-Scanners

Custom Scanner Samples.
11 stars 12 forks source link

NPE when creating custom lineage #39

Closed greg-infa closed 1 year ago

greg-infa commented 2 years ago

NPE is thrown, when creating a custom lineagem when a base view is using JDBC data source to Virtual Data Port.

The reason is that JDBC Wrapper for Denodo VDP does not contain schema. Wrapper.java with a proposed fix is attached (createWrapper method is modified).

static Wrapper createWrapper(String wrapperVQL, String inDatabase) {
        Wrapper wr = new Wrapper();
        // wr.dataSourceObj = ds;
        // System.out.println("raw wrapper=" + wr);

        wr = wr.parse(wrapperVQL, inDatabase);
        // System.out.println("cooked wr=" + wr);
        // Added due to errors when it is JDBC wrapper to Denodo VDP:
        if (wr.schema == null) {
            wr.schema = inDatabase;
        }
        // Added due to errors when it is JDBC wrapper to Denodo VDP.
        return wr;
    }

Wrapper.zip

.

darren-wrigley commented 2 years ago

i realized that this issue was fixed a while ago, but a PR for the changes was never submitted from my forked repository.

darren-wrigley commented 1 year ago

see comments above