Skip to content

Commit db21b65

Browse files
authored
Merge pull request #127942 from thakurmishra21/patch-14
Update data-lake-storage-query-acceleration-how-to.md
2 parents 0b023c9 + c4165d4 commit db21b65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

articles/storage/blobs/data-lake-storage-query-acceleration-how-to.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ You can use SQL to specify the row filter predicates and column projections in a
221221
```powershell
222222
Function Get-QueryCsv($ctx, $container, $blob, $query, $hasheaders) {
223223
$tempfile = New-TemporaryFile
224-
$informat = New-AzStorageBlobQueryConfig -AsCsv -HasHeader:$hasheaders
225-
Get-AzStorageBlobQueryResult -Context $ctx -Container $container -Blob $blob -InputTextConfiguration $informat -OutputTextConfiguration (New-AzStorageBlobQueryConfig -AsCsv -HasHeader) -ResultFile $tempfile.FullName -QueryString $query -Force
224+
$informat = New-AzStorageBlobQueryConfig -AsCsv -HasHeader:$hasheaders -RecordSeparator "`n" -ColumnSeparator "," -QuotationCharacter """" -EscapeCharacter "\"
225+
Get-AzStorageBlobQueryResult -Context $ctx -Container $container -Blob $blob -InputTextConfiguration $informat -OutputTextConfiguration (New-AzStorageBlobQueryConfig -AsCsv -HasHeader -RecordSeparator "`n" -ColumnSeparator "," -QuotationCharacter """" -EscapeCharacter "\") -ResultFile $tempfile.FullName -QueryString $query -Force
226226
Get-Content $tempfile.FullName
227227
}
228228

0 commit comments

Comments
 (0)