Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Compilation Error with MongoDB to BigQuery #1793

Open
wazi55 opened this issue Aug 15, 2024 · 1 comment
Open

[Bug]: Compilation Error with MongoDB to BigQuery #1793

wazi55 opened this issue Aug 15, 2024 · 1 comment
Labels
bug Something isn't working needs triage p2

Comments

@wazi55
Copy link
Contributor

wazi55 commented Aug 15, 2024

Related Template(s)

MongoDbToBigQuery & MongoDbToBigQueryCDC

Template Version

Don't know

What happened?

While trying to make a contribution to allow mongodb to bigquery to support Json in a USER_OPTION=FLATTEN, I cannot seem to compile the code successfuly

To reproduce:

export PROJECT="project"
export BUCKET_NAME="bucket"

mvn clean package -PtemplatesStage  \
-DskipTests \
-DprojectId="$PROJECT" \
-DbucketName="$BUCKET_NAME" \
-DstagePrefix="templates" \
-DtemplateName="MongoDB_to_BigQuery" \
-f v2/mongodb-to-googlecloud

Relevant log output

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project mongodb-to-googlecloud: Compilation failure
[ERROR] /Users/wazi/Downloads/DataflowTemplates/v2/mongodb-to-googlecloud/src/main/java/com/google/cloud/teleport/v2/mongodb/options/MongoDbToBigQueryOptions.java:[136,23] cannot find symbol
[ERROR]   symbol:   class JavascriptUdfFile
[ERROR]   location: class com.google.cloud.teleport.metadata.TemplateParameter
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
@wazi55 wazi55 added bug Something isn't working needs triage p2 labels Aug 15, 2024
@wazi55
Copy link
Contributor Author

wazi55 commented Aug 15, 2024

It does seem like the JavascriptUdfFile interface is in the right file DataflowTemplates/metadata/src/main/java/com/google/cloud/teleport/metadata/TemplateParameter.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage p2
Projects
None yet
Development

No branches or pull requests

1 participant