Skip to content

Commit

Permalink
feat: add roundtrip test for textplans (#68)
Browse files Browse the repository at this point in the history
The test is disabled by default as there are a large number of missing
features and issues that still need to be addressed.
  • Loading branch information
EpsilonPrime committed Jun 8, 2023
1 parent 62b4a72 commit 98abe4b
Show file tree
Hide file tree
Showing 13 changed files with 10,380 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run-clang-tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SCRIPTDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
WORKDIR="$( cd $SCRIPTDIR/.. && pwd )"

# Make compile_command.json
rm -rf tmp && mkdir tmp && cmake -Btmp -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
rm -rf tmp && mkdir tmp && cmake -Btmp -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSUBSTRAIT_CPP_ROUNDTRIP_TESTING=ON
# Build substrait protobuf
pushd tmp/src/substrait/proto && make -j && popd || exit
# Build textplan grammar
Expand Down
823 changes: 823 additions & 0 deletions src/substrait/textplan/data/tpch-plan01.json

Large diffs are not rendered by default.

830 changes: 830 additions & 0 deletions src/substrait/textplan/data/tpch-plan03.json

Large diffs are not rendered by default.

1,066 changes: 1,066 additions & 0 deletions src/substrait/textplan/data/tpch-plan05.json

Large diffs are not rendered by default.

Loading

0 comments on commit 98abe4b

Please sign in to comment.