Skip to content

substrait r package structure overview

Nic Crane edited this page Nov 21, 2022 · 1 revision

substrait-r package key files

- data

    - example_data.rda

- data-raw

    - example_data.R

    - generate-types.R

    - update-substrait.R

    - example_plans

- inst

    - substrait (literally the substrait project files)

- R

    - aggregate-rel.R (functions which take a compiler and some quosures and then produce a relation and update the compiler with it)

    - compiler.R (defines the compiler class and its methods, along with utility functions for it)

    - cpp11.R (usual boilerplate cpp11 stuff)

    - example_data.R (documentation for example data)

    - expression.R (functions for turning things into substrait expressions)

    - filter-rel.R (functions which take a compiler and some quosures and then produce a relation and update the compiler with it)

    - literal.R (functions for turning literal objects into substrait)

    - pkg-arrow.R (arrow substrait compiler class, function definitions, type mapping, methods to call on arrow objects)

    - pkg-duckdb.R (duckdb substrait compiler class, function definitions, type mapping, methods to call on duckdb objects)

    - pkg-rprotobuf.R (code to do with the RProtobuf package)

    - project-rel.R (functions which take a compiler and some quosures and then produce a relation and update the compiler with it)

    - reexports-dplyr.R (functions we re-export from dplyr)

    - rel.R (functions for getting the schema of a rel)

    - sort-rel.R (functions which take a compiler and some quosures and then produce a relation and update the compiler with it)

    - substrait-package.R (basic package things)

    - substrait-proto.R (functions for creating substrait messages)

    - types-generated.R (generated by generate-types.R)

    - types.R (functions for creating substrait funcs of different data types)

    - util.R (utility functions for unit testing)

    - zzz.R (contains functions to read in protobuf files on package load)
Clone this wiki locally