1

I have need to add additional Columns to each file under a folder.

I am getting error

E_CSC_USER_DATAPARTITIONEDOUTPUTNOTSUPPORTED: Data partitioned output is not supported.

@q =
    EXTRACT OrderID int,
        OrderDate DateTime?,
        CustomerName string,
        PhoneNumber string,
        DeliveryAddressLine1 string,
        DeliveryAddressLine2 string,
        CityName string,
        StockItemID int?,
        Quantity int?,
        UnitPrice float?,
        filename string,
        extension string
    FROM "/Orders/{filename}.{extension}"
    USING Extractors.Tsv(skipFirstNRows:1);



OUTPUT @q TO "/Orders/Processed/{filename}.{extension}"
USING Outputters.Csv(outputHeader:true);
NSS
  • 1,835
  • 2
  • 29
  • 66

1 Answers1

2

Currently dynamic partitioned output (aka using {} wildcards in output paths) is currently in preview. If you're interested, please email usql at Microsoft dot com with more information about your scenario to see if the preview would work for you.

Otherwise, you could script your output via U-SQL or Powershell. Example here.

mabasile_MSFT
  • 511
  • 2
  • 4