delta-io/connectors

None of the Java example project can be run due to compilation error

kristoffSC opened this issue · 3 comments

All Java example projects under https://github.com/delta-io/connectors/tree/master/examples
are facing a compilation error preventing them to build and run.

The issue is that class package declaration does not reflects an actual folder structure.
image

To match the package declaration which is package example the folder structure should be like this:
src/main/java/example

This problem occurs in every Java example project:

  1. Convert-to-delta
  2. flink-example (originally was ok but was changed in PR https://github.com/delta-io/connectors/pull/305/files)
  3. hello-world

To load for example a "hello-world" module as a java project you need to:

  1. right click on java folder under "hello-world" module and mark it as a source root folder:
    image
  2. Right click on pom.xml -> Add as maven project
    image

FYI
fix for the Flink examples is provided in PR #327

@scottsand-db Has this been fixed?

@scottsand-db Has this been fixed?

No it hasn't. It's currently assigned to @allisonport-db. I can take a look tomorrow as part of my on-call.