Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
686 views
in Technique[技术] by (71.8m points)

u sql - Compile error when using REFERENCE ASSEMBLY statement

I am trying to write a hello-world type USQL script with a custom extractor and whenever I include a REFERENCE ASSEMBLY statement the build failing with the error

C:ProjectsTestAzureadlsHelloWorldHelloWorldinDebugExampleExample.usql(-1,-1): error E_CSC_SYSTEM_INTERNAL: Internal error! Index was outside the bounds of the array..

I am using the example from the documentation (data abbreviated for the post). Commenting out the reference assembly statement allows the script to run to completion. Also according to the server browser the assembly was successfully registered within the local-machine ADLA account which shows the CREATE ASSEMBLY statement is succeeding.

CREATE ASSEMBLY IF NOT EXISTS [Newtonsoft.Json] FROM "/assemblies/Newtonsoft.Json.dll";
REFERENCE ASSEMBLY [Newtonsoft.Json];

@employees = 
    SELECT * FROM 
        ( VALUES
        (1, "Noah",   100, (int?)10000, new DateTime(2012,05,31), "cell:030-0074321,office:030-0076545"),
        (14, "Jennie", 100, (int?)34000, new DateTime(2000,02,12), "cell:(5) 555-3392,office:(5) 555-7293")
        ) AS T(EmpID, EmpName, DeptID, Salary, StartDate, PhoneNumbers);


@result =
    SELECT EmpName,
           Salary ?? 0 AS Salary
    FROM @employees;

OUTPUT @result
TO "/output/example.csv"
ORDER BY Salary
USING Outputters.Csv();
question from:https://stackoverflow.com/questions/65908287/compile-error-when-using-reference-assembly-statement

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...