Skip to content

Commit

Permalink
Merge branch 'master' into fix_unwind_crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Dec 3, 2021
2 parents fb4d3bf + 69bd48f commit b7d8d30
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,10 @@ jobs:
-DENABLE_COVERAGE=on \
-B build
echo "::set-output name=j::8"
echo "::set-output name=t::6"
- name: Make
run: |
ccache -z
cmake --build build/ -j ${{ steps.cmake.outputs.j }} --target nebula-metad nebula-storaged nebula-graphd
cmake --build build/ -j ${{ steps.cmake.outputs.t }}
cmake --build build/ -j $(nproc)
ccache -s
- name: CTest
env:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ jobs:
-DENABLE_TESTING=on \
-B build
echo "::set-output name=j::10"
echo "::set-output name=t::$(nproc)"
;;
ubuntu2004)
# build with Debug type
Expand All @@ -109,7 +108,6 @@ jobs:
-DENABLE_COVERAGE=on \
-B build
echo "::set-output name=j::10"
echo "::set-output name=t::6"
;;
esac
;;
Expand All @@ -123,14 +121,12 @@ jobs:
-DENABLE_TESTING=on \
-B build
echo "::set-output name=j::6"
echo "::set-output name=t::10"
;;
esac
- name: Make
run: |
ccache -z
cmake --build build/ -j $(nproc) --target nebula-metad nebula-storaged nebula-graphd
cmake --build build/ -j ${{ steps.cmake.outputs.t }}
cmake --build build/ -j $(nproc)
ccache -s
- name: CTest
env:
Expand Down
8 changes: 8 additions & 0 deletions src/graph/visitor/EvaluableExprVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ class EvaluableExprVisitor : public ExprVisitorImpl {

void visit(SubscriptRangeExpression *) override { isEvaluable_ = false; }

void visitBinaryExpr(BinaryExpression *expr) override {
expr->left()->accept(this);
// Evaluable sub-expression should be obscured by the non-evaluable sub-expression.
if (isEvaluable_) {
expr->right()->accept(this);
}
}

bool isEvaluable_{true};
};

Expand Down

0 comments on commit b7d8d30

Please sign in to comment.