gpt4 book ai didi

Azure Datalake Gen2 作为 Azure 数据资源管理器的外部表

转载 作者:行者123 更新时间:2023-12-02 08:00:18 25 4
gpt4 key购买 nike

我们在 Azure Data Lake Gen 2 的分区文件夹下有 CSV 文件,因此单个大表将有多个 CSV 文件。我们希望通过创建外部表在 Azure 数据资源管理器中使用这些文件。所以我使用下面的脚本在 ADX 中创建外部表:

   .create external table TestAdx
(

id: int,
name: string,
designation: string
)
kind=adl

dataformat=csv

(
h@'abfss://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bcdfd3d2c8ddd5d2d9ced2ddd1d9fccfc8d3cedddbd9dddfdfd3c9d2c8d2ddd1d992d8dacf92dfd3ced992cbd5d2d8d3cbcf92d2d9c8" rel="noreferrer noopener nofollow">[email protected]</a>/staging/textadx;token=<<generating using .net API>>'
)

with
(
docstring = "Docs",
folder = "ExternalTables",
namePrefix="Prefix"
)

我能够执行此查询并创建外部表,但是当我尝试从此表中获取数据时,会出现以下错误:

Semantic error: 'TestAdx' has the following semantic error: '' operator: Failed to resolve table or column or scalar expression named 'TestAdx'.

另外请告诉我这是使用 ADX 形式的 ADLS Gen2 文件的正确方法吗?

最佳答案

您正在运行的查询是什么?您使用的是 external_table() 函数吗?

关于Azure Datalake Gen2 作为 Azure 数据资源管理器的外部表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57597000/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com