Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from acmiyaguchi/tuples
Add support for tuples in the form of anonymous structs
- Loading branch information
Showing
16 changed files
with
711 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ __pycache__/ | |
**/*.rs.bk | ||
|
||
/schemas | ||
/test_tuple_results |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname "$0").." | ||
|
||
datadir=$(mktemp -d -t tmp.XXXXXXXXXX) | ||
function cleanup { | ||
echo "Running cleanup!" | ||
rm -rf "$datadir" | ||
} | ||
trap cleanup EXIT | ||
|
||
scripts/mps-download-schemas.sh | ||
|
||
avro_control=$datadir/avro-control | ||
avro_no_tuple=$datadir/avro-no-tuple | ||
avro_tuple=$datadir/avro-tuple | ||
|
||
bq_control=$datadir/bq-control | ||
bq_no_tuple=$datadir/bq-no-tuple | ||
bq_tuple=$datadir/bq-tuple | ||
|
||
|
||
# get control values | ||
git checkout v1.4.1 | ||
|
||
scripts/mps-generate-schemas.sh $avro_control --type avro --resolve drop | ||
scripts/mps-generate-schemas.sh $bq_control --type bigquery --resolve drop | ||
|
||
git checkout - | ||
|
||
# get values for tuple/no-tuple | ||
scripts/mps-generate-schemas.sh $avro_no_tuple --type avro --resolve drop | ||
scripts/mps-generate-schemas.sh $avro_tuple --type avro --resolve drop --tuple-struct | ||
scripts/mps-generate-schemas.sh $bq_no_tuple --type bigquery --resolve drop | ||
scripts/mps-generate-schemas.sh $bq_tuple --type bigquery --resolve drop --tuple-struct | ||
|
||
outdir="test_tuple_results" | ||
mkdir -p $outdir | ||
|
||
diff -r $avro_control $avro_no_tuple > $outdir/avro-no-tuple.diff | ||
diff -r $bq_control $bq_no_tuple > $outdir/bq-no-tuple.diff | ||
diff -r $avro_no_tuple $avro_tuple > $outdir/avro-tuple.diff | ||
diff -r $bq_no_tuple $bq_tuple > $outdir/bq-tuple.diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.