How to unit test U-SQL scripts?

烈酒焚心 提交于 2019-12-11 07:35:23

问题


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.

Thank you


回答1:


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



来源:https://stackoverflow.com/questions/48664423/how-to-unit-test-u-sql-scripts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!