Skip to content

Commit

Permalink
add (#2573)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChen2023 authored Jun 19, 2024
1 parent 3f6ae4e commit b622adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs-2.0-en/connector/nebula-spark-connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ val edge = spark.read.nebula(config, nebulaReadEdgeConfig).loadEdgesToDF()
!!! note
The values of columns in a dataframe are automatically written to NebulaGraph as property values.
- The values of columns in a DataFrame are automatically written to NebulaGraph as property values.
- Make sure that the column names in the DataFrame are consistent with the property names in NebulaGraph. If they are inconsistent, you can use `DataFrame.withColumnRenamed` to rename the column names first.
```scala
val config = NebulaConnectionConfig
Expand Down
3 changes: 2 additions & 1 deletion docs-2.0-zh/connector/nebula-spark-connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ val edge = spark.read.nebula(config, nebulaReadEdgeConfig).loadEdgesToDF()
!!! note
DataFrame 中的列会自动作为属性写入 {{nebula.name}} 。
- DataFrame 中的列会自动作为属性写入 {{nebula.name}} 。
- 请确保 DataFrame 中的列名和{{nebula.name}}中的属性名一致。若不一致,可通过`DataFrame.withColumnRenamed`方法修改列名。
```scala
val config = NebulaConnectionConfig
Expand Down

0 comments on commit b622adf

Please sign in to comment.