When importing data to the graph database Galaxybase using the import tool galaxybase-load, how should the value of the alias field be configured?

huangapple go评论45阅读模式
英文:

When importing data to the graph database Galaxybase using the import tool galaxybase-load, how should the value of the alias field be configured?

问题

如果在使用导入工具 galaxybase-load 将数据导入图形数据库 Galaxybase 时,需要一个 mapping.json 文件。如果 mapping.json 文件中的 "hasHeader" 字段的值为 "false",那么应该如何配置 "alias" 字段?

英文:

When using the import tool galaxybase-load to import data into the graph database Galaxybase, a mapping.json file is needed. If the value of the "hasHeader" field in the mapping.json file is "false", how should the "alias" field be configured?

答案1

得分: 0

The "alias" field needs to be filled with the property names of vertex and edge types in the graph model.

The "alias" field is not related to the "hasHeader" field, as they have different meanings and refer to different objects.

The "alias" field is related to the "columnName" and "columnIndex" fields, which specify which columns from the data source will be imported into the property specified by "alias".

The "hasHeader" field indicates whether the data source has a header row. If this field is set to "true", the first row will be treated as the header and not imported.

The "hasHeader" field is only supported for CSV, socket, and HDFS CSV data sources, which use the "columnIndex" field to specify columns.

For data sources such as JDBC and HDFS Parquet, which use the "columnName" to specify columns, the "hasHeader" field does not need to be filled. Therefore, there is no data source that requires both "hasHeader" and "columnName" to be set at the same time.

英文:

The "alias" field needs to be filled with the property names of vertex and edge types in the graph model. The "alias" field is not related to the "hasHeader" field, as they have different meanings and refer to different objects.

The "alias" field is related to the "columnName" and "columnIndex" fields, which specify which columns from the data source will be imported into the property specified by "alias".

The "hasHeader" field indicates whether the data source has a header row. If this field is set to "true", the first row will be treated as the header and not imported. The "hasHeader" field is only supported for CSV, socket, and HDFS CSV data sources, which use the "columnIndex" field to specify columns.

For data sources such as JDBC and HDFS Parquet, which use the "columnName" to specify columns, the "hasHeader" field does not need to be filled. Therefore, there is no data source that requires both "hasHeader" and "columnName" to be set at the same time.

huangapple
  • 本文由 发表于 2023年4月17日 16:47:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/76033271.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定