【问题标题】:Azure Data Factory json dataset missing property in typePropertiesAzure 数据工厂 json 数据集缺少 typeProperties 中的属性
【发布时间】:2018-01-04 12:06:30
【问题描述】:

我正在 Azure 数据工厂 (v1) 中从 json 格式的数据创建数据集。使用以下代码时,typeProperties 对象上的信息文本 Property specific to this data set type 出现 Property expected 错误。据我所知,我使用的属性与example docs 中的属性相同。我缺少什么属性?

数据集定义:

{
    "name": "JsonDataSetData",
    "properties": {
        "type": "AzureDataLakeStore",
        "linkedServiceName": "TestAzureDataLakeStoreLinkedService",
        "structure": [
            {
                "name": "timestamp",
                "type": "String"
            },
            {
                "name": "value",
                "type": "Double"
            }
        ],
        "typeProperties": {
            "folderPath": "root_folder/sub_folder",
            "format": {
                "type": "JsonFormat",
                "filePattern": "setOfObjects",
                "jsonPathDefinition": {
                    "spid": "$.timestamp",
                    "value": "$.value"
                }
            },
        },
        "availability": {
            "frequency": "Day",
            "interval": 1
        }
    }
}

【问题讨论】:

    标签: json azure azure-data-factory azure-data-lake


    【解决方案1】:

    您是否尝试过使用默认值添加 encodingName 和 nestingSeparator?文档有时会出现错误,并且记录为不需要的属性可能会给您此错误。

    【讨论】:

      猜你喜欢
      • 2020-05-30
      • 2021-05-06
      • 1970-01-01
      • 1970-01-01
      • 2016-03-27
      • 1970-01-01
      • 2020-11-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多