You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add substrait.proto convenience module and document it (#50)
Add a ``substrait.proto`` module that gives access to the Substrait
protocol classes
removing the need to navigate the hierarchy automatically generated by
protobuf.
It also provides access to the modules without the ``_pb2`` suffix
which is an implementation detail of the protobuf version used.
Provides examples on how to generate and read back Substrait plans
using the substrait-python module itself.
---------
Co-authored-by: Gil Forsyth <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+117-14
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,118 @@ This project is not an execution engine for Substrait Plans.
27
27
This is an experimental package that is still under development.
28
28
29
29
# Example
30
-
At the moment, this project contains only generated Python classes for the Substrait protobuf messages. Let's use an existing Substrait producer, [Ibis](https://ibis-project.org), to provide an example using Python Substrait as the consumer.
30
+
31
+
## Produce a Substrait Plan
32
+
The ``substrait.proto`` module provides access to the classes
33
+
that represent a substrait Plan, thus allowing to create new plans.
34
+
35
+
Here is an example plan equivalent to ``SELECT first_name FROM person``
36
+
where ``people`` table has ``first_name`` and ``surname`` columns of type ``String``
0 commit comments