简体   繁体   English

无法在 Visual Studio 中本地运行 U-SQL 脚本

[英]Unable to run U-SQL script locally in visual studio

When i run the u-sql script locally in visual studio.. it is throwing error E_CSC_SYSTEM_INTERNAL: Internal error. The ObjectManager found an invalid number of fixups. This usually indicates a problem in the Formatter.当我在 Visual Studio 中本地运行 u-sql 脚本时,它会抛出错误E_CSC_SYSTEM_INTERNAL: Internal error. The ObjectManager found an invalid number of fixups. This usually indicates a problem in the Formatter. E_CSC_SYSTEM_INTERNAL: Internal error. The ObjectManager found an invalid number of fixups. This usually indicates a problem in the Formatter.

@input =
    EXTRACT         
            Address_1 string,
            Address_2 string
            FROM "/Data_new"
    USING Extractors.Text(delimiter : '~', quoting : false, silent : true);
@output2 =
    SELECT DISTINCT 
                    Address_1,
                    Address_2
FROM @input;
OUTPUT @output2
TO "/out.txt"
USING Outputters.Text(delimiter : '~' , quoting : false);

Important things to note before you run U-SQL script locally in visual studio.在 Visual Studio 中本地运行 U-SQL 脚本之前需要注意的重要事项。

  • U-SQL SDK only support x64 environment, make sure to set build platform target as x64 and set your test environment as x64. U-SQL SDK 仅支持 x64 环境,请确保将构建平台目标设置为 x64,并将您的测试环境设置为 x64。
  • Make sure to copy all dependency files (correct versions) as part of your solution.确保复制所有依赖文件(正确版本)作为解决方案的一部分。
  • Do not change default data root path.不要更改默认数据根路径。
  • Before running any USQL script from test, make sure it runs successfully.在从测试中运行任何 USQL 脚本之前,请确保它成功运行。 Exclude any audit columns like UpdatedTime, ProcessedOn, etc from data comparison.从数据比较中排除任何审计列,如 UpdatedTime、ProcessedOn 等。

For more details, refer " ADLA - Run U-SQL script on your local machine " and " ADLA - U-SQL ".有关详细信息,请参阅“ ADLA - 在本地计算机上运行 U-SQL 脚本”和“ ADLA - U-SQL ”。

Hope this helps.希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM