GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — sqlflow/java/parser at develop · sql-machine-learning/sqlflow

Expand file tree

/

parser

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

parser

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Build and Test Third Party Parsers

We build and test two third party parsers, Hive and Calcite, and wrap these two parsers into either a gRPC server or a command line.

Build and Test the Parsers

To make sure that all developers use the same version and configuration of development tools like JDK and Maven, we install all of them into a Docker image sqlflow/sqlflow:ci.

To download the image, type the following command

docker pull sqlflow/sqlflow:ci

To start a Docker container that runs the above image, we can type the following command:

docker run --rm -it -v $HOME:/root -v $PWD:/work -w /work sqlflow/sqlflow:ci bash

Please be aware the -v $HOME:/root binds the $HOME directory on the host to the /root, the home directory, in the container, so that when we run Maven in the container, it saves the downloaded jars into $HOME/.m2.

In the container, we can type the following command to generate the gRPC related code.

protoc --java_out=src/main/java --grpc-java_out=src/main/java/ --proto_path=src/main/proto/ src/main/proto/parser.proto

In the container, we can type the following command to test the package

mvn test
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.