Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #95 from Nicole00/fix_null_rankField
Browse files Browse the repository at this point in the history
fix null rank field config
  • Loading branch information
jievince authored Jun 8, 2021
2 parents f235882 + 9027247 commit 052daf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class WriteNebulaEdgeConfig(space: String,
def getSrcPolicy = if (srcPolicy == null) "" else srcPolicy
def getDstField = dstField
def getDstPolicy = if (dstPolicy == null) "" else dstPolicy
def getRankField = rankField
def getRankField = if (rankField == null) "" else rankField

def getSrcAsProp = srcAsProp
def getDstAsProp = dstAsProp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class NebulaDataSource
} else {
val srcVertexFiled = nebulaOptions.srcVertexField
val dstVertexField = nebulaOptions.dstVertexField
val rankExist = nebulaOptions.rankField != null
val rankExist = !nebulaOptions.rankField.isEmpty
val edgeFieldsIndex = {
var srcIndex: Int = -1
var dstIndex: Int = -1
Expand Down

0 comments on commit 052daf9

Please sign in to comment.