如何对U-SQL脚本进行单元测试? [英] How to unit test U-SQL scripts?
问题描述
我目前有一个带有一组不同脚本的U-SQL项目,并且我正在尝试为它们创建单元测试.我可以使用带有一组测试数据的Azure Data Lake工具在本地运行脚本,并生成预期的输出. 这些脚本是纯U-SQL数据操作/转换,因此,由于没有任何方法,我不确定测试该方法的正确方法是什么? 如果有人对应该如何做有任何经验/想法或任何文档,请随时提供帮助.
I currently have a U-SQL project with a set of different scripts, and i am trying to create unit tests for them. I can run the scripts locally using the Azure Data Lake tools with a set of test data and generate the expected outputs. The scripts are pure U-SQL data manipulation/transformation so because there are no methods i am not sure whats the correct approach to test this? If anyone has any experience/idea on how it should be done or any documentation please feel free to help.
谢谢
推荐答案
Azure Data Lake提供了U-SQL SDK,可帮助您通过命令行和编程界面在本地运行U-SQL脚本,它在ADL VS中执行相同的本地运行操作工具.这是参考文档:
Azure Data Lake provides U-SQL SDK that helps you run U-SQL script locally through command line and programming interface, it performs same local run action in ADL VS Tool. Here is the reference document: https://docs.microsoft.com/en-us/azure/data-lake-analytics/data-lake-analytics-u-sql-sdk
这篇关于如何对U-SQL脚本进行单元测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!