Skip to content

Commit

Permalink
fix release flow and format
Browse files Browse the repository at this point in the history
  • Loading branch information
Matts966 committed Dec 25, 2021
1 parent daa49b5 commit 450ea95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ jobs:
run: |
temp=$(mktemp -d)
wget -P $temp "https://github.com/Matts966/zetasql-formatter/releases/download/${TAG}/zetasql-formatter_linux_x86_64.zip"
sudo unzip $temp/zetasql-formatter_darwin_amd64.zip -d /usr/local/bin
sudo unzip $temp/zetasql-formatter_linux_x86_64.zip -d /usr/local/bin
zetasql-formatter .
3 changes: 3 additions & 0 deletions zetasql/parser/unparser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,7 @@ void Unparser::visitASTClampedBetweenModifier(
println();
{
Formatter::Indenter indenter(&formatter_);
println();
print("CLAMPED BETWEEN");
for (int i = 0; i < node->num_children(); i++) {
PrintCommentsPassedBy(node->child(i)->GetParseLocationRange().start(), data);
Expand Down Expand Up @@ -2323,6 +2324,7 @@ void Unparser::visitASTBetweenExpression(const ASTBetweenExpression* node,
node->child(0)->Accept(this, data);
{
Formatter::Indenter indenter(&formatter_);
println();
print(absl::StrCat(node->is_not() ? "NOT " : "", "BETWEEN"));
for (int i = 1; i < node->num_children(); i++) {
PrintCommentsPassedBy(node->child(i)->GetParseLocationRange().start(), data);
Expand Down Expand Up @@ -2686,6 +2688,7 @@ void Unparser::visitASTWindowFrame(const ASTWindowFrame* node,
print(node->GetFrameUnitString());
if (nullptr != node->end_expr()) {
Formatter::Indenter indenter(&formatter_);
println();
print("BETWEEN");
node->start_expr()->Accept(this, data);
println();
Expand Down

0 comments on commit 450ea95

Please sign in to comment.