我正在尝试使用 COPY INTO 来摄取存储帐户(ADLS Gen2)上文件夹中的文件。
如果我连接每个文件的路径,它就可以工作。
COPY INTO dbo.internal_heap
FROM 'https://storageaccount.dfs.core.windows.net/folderA/folderB/1.orc',
'https://storageaccount.dfs.core.windows.net/folderA/folderB/2.orc',
'https://storageaccount.dfs.core.windows.net/folderA/folderB/3.orc',
'https://storageaccount.dfs.core.windows.net/folderA/folderB/4.orc'
WITH (
FILE_TYPE = 'ORC'
,CREDENTIAL=(IDENTITY= 'Managed Identity')
)
如果我使用这样的通配符:
COPY INTO dbo.internal_heap
FROM 'https://storageaccount.dfs.core.windows.net/folderA/folderB/*.orc'
WITH (
FILE_TYPE= 'ORC'
,CREDENTIAL=(IDENTITY= 'Managed Identity')
)
我有这个错误:
Msg 110813, Level 16, State 1, Line 1
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
有什么线索吗?