I have created a .Net Activity which has copy activity (which copies the data from on-premises to Data Lake store) and U-SQL activity (which process the data and store the result in Data Lake Store).
But for processing the data using U-SQL needs the schema of the table which is also need to copied from the on-premises database.
U-SQL Query:
DECLARE @storagePath string = @"E:\";
DECLARE @inputFileSetName string = @"inputfile.tsv";
DECLARE @outputFileName string = @"outputfile.tsv";
DECLARE @input string = String.Concat(@storagePath,
@inputFileSetName);
DECLARE @output string= string.Concat(@storagePath, @outputFileName);
@searchlog =
EXTRACT <Schema for the table>
FROM @input
USING Extractors.Tsv();
OUTPUT @searchlog
TO @output
USING Outputters.Tsv();
I have to get the schema of the table along with the data using the Azure ADF Custom Activity?