From 955b3a5326f754fd9d40c77120584c1dd99eaa3a Mon Sep 17 00:00:00 2001 From: Zhang Lei Date: Wed, 10 Jan 2024 10:52:24 +0800 Subject: [PATCH] [Minor][Spark] Fix Spark comparison bug (#318) --- spark/src/main/scala/com/alibaba/graphar/util/Utils.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spark/src/main/scala/com/alibaba/graphar/util/Utils.scala b/spark/src/main/scala/com/alibaba/graphar/util/Utils.scala index 4be2134cc..0572df473 100644 --- a/spark/src/main/scala/com/alibaba/graphar/util/Utils.scala +++ b/spark/src/main/scala/com/alibaba/graphar/util/Utils.scala @@ -127,7 +127,7 @@ object Utils { val isPrimary: Boolean = if ( (primaryKeys(key) == "" && properties - .size() == 0) || field.name == primaryKeys + .size() == 0) || field.name.equals(primaryKeys(key)) ) true else false property.setIs_primary(isPrimary)