Skip to content

Commit 07d7ba5

Browse files
authored
chore: modify readme to include basic information (#129)
1 parent 35aa306 commit 07d7ba5

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

readme.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
1-
Substrait Java Code
1+
# Substrait Java
22

3+
Substrait Java is a project that makes it easier to build [Substrait](https://substrait.io/) plans through Java. The project has two main parts:
4+
1) **Core** is the module that supports building Substrait plans directly through Java. This is much easier than manipulating the Substrait protobuf directly. It has no direct support for going from SQL to Substrait (that's covered by the second part)
5+
2) **Isthmus** is the module that allows going from SQL to a Substrait plan. Both Java APIs and a top level script for conversion are present. Not all SQL is supported yet by this module, but a lot is. For example, all of the TPC-H queries and all but a few of the TPC-DS queries are translatable.
6+
7+
## Building
8+
After you've cloned the project through git, Substrait Java is built with a tool called [Gradle](https://gradle.org/). To build, execute the following:
9+
```
10+
./gradlew build
11+
```
12+
13+
To build the Isthmus executable that enables Substrait plans to be generated for a SQL statement, execute the following:
14+
```
15+
./gradlew nativeImage
16+
```
17+
18+
## Getting Started
19+
A good way to get started is to experiment with building Substrait plans for your own SQL. To do that, you can use the isthmus executable as described [here](https://github.com/substrait-io/substrait-java/blob/main/isthmus/README.md).
20+
21+
Another way to get an idea of what Substrait plans look like is to use our script that generates Substrait plans for all the TPC-H queries:
22+
```
23+
./isthmus/src/test/script/tpch_smoke.sh
24+
```
25+
26+
## Getting Involved
27+
To learn more, head over [Substrait](https://substrait.io/), our parent project and join our [community](https://substrait.io/community/)

0 commit comments

Comments
 (0)