Skip to content

Conversation

@giospada
Copy link
Contributor

@giospada giospada commented Dec 3, 2025

  • Create unified setup_antlr.sh script for ANTLR dependency
  • Add setup-antlr make target for initialization
  • Update Dockerfile to use unified setup script
  • Add pre_push make target with all required checks
  • Update CONTRIBUTING.md with pre-push instructions
  • moved gen_proto.sh and update_proto.sh

format:
uvx [email protected] format

pre_push: format lint_fix antlr codegen-extensions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should switch this to make codegen now

antlr: setup-antlr
cd third_party/substrait/grammar \
&& java -jar ${ANTLR_JAR} -o ../../../src/substrait/gen/antlr -Dlanguage=Python3 SubstraitType.g4 \
&& java -jar ../../../lib/antlr-complete.jar -o ../../../src/substrait/gen/antlr -Dlanguage=Python3 SubstraitType.g4 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand why this hardcoded path will always work..

Copy link
Contributor Author

@giospada giospada Dec 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script is designed to download the ANTLR JAR file to that specific, project dir/lib. This approach is consistent with the relative path used for the ../../../src directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants