Skip to content

Commit

Permalink
Remove the validation about inconsitent property type between differe…
Browse files Browse the repository at this point in the history
…nt labels (#1594)

As GIE no longer requires it and it causes some trouble for GAE users.

Signed-off-by: Tao He <[email protected]>
  • Loading branch information
sighingnow authored Oct 18, 2023
1 parent 86f5bf0 commit 88e03d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ jobs:
protobuf-compiler-grpc \
python3-pip \
uuid-dev \
wget\
default-jdk\
maven
wget
# install apache-arrow
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
Expand All @@ -134,6 +132,9 @@ jobs:
libplasma-dev=11.0.0-1 \
libarrow-cuda-dev=11.0.0-1
# install deps for java
sudo apt install -y default-jdk-headless maven
# install clang-format
sudo curl -L https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-1d7ec53d/clang-format-11_linux-amd64 --output /usr/bin/clang-format
sudo chmod +x /usr/bin/clang-format
Expand Down
16 changes: 0 additions & 16 deletions modules/graph/fragment/graph_schema.cc
Original file line number Diff line number Diff line change
Expand Up @@ -693,22 +693,6 @@ bool PropertyGraphSchema::Validate(std::string& message) {
std::sort(
all_props.begin(), all_props.end(),
[](const auto& lhs, const auto& rhs) { return lhs.name < rhs.name; });

for (size_t i = 1; i < all_props.size(); ++i) {
if (all_props[i].name == all_props[i - 1].name &&
!all_props[i].type->Equals(all_props[i - 1].type)) {
std::stringstream ss;
ss << "The <property_name, property_type> pair should be unique across "
"the Graph";
ss << " Found two pairs <" << all_props[i].name << ", "
<< all_props[i].type->ToString();
ss << "> and <" << all_props[i - 1].name << ", "
<< all_props[i - 1].type->ToString();
ss << ">.";
message = ss.str();
return false;
}
}
return true;
}
const std::map<std::string, int>&
Expand Down

0 comments on commit 88e03d9

Please sign in to comment.