U-SQL Join failing
Hi I am trying to join using U-SQL and the three input files are text file now I am getting error. I am new into these.
When I am trying to join then it is throwing below error. I have already tried with this: USING Extractors.Csv(encoding:System.Text.Encoding.GetEncoding("Windows-1252"));
but same error.
Could you please help to fix the error :
{
"errorCode": "2703",
"message": "Error Id: E_CSC_USER_SYNTAXERROR, Error Message: syntax error. Expected one of: identifier quoted-identifier variable . Error Id: E_CSC_USER_RESERVEDKEYWORDASIDENTIFIER, Error Message: Reserved keyword FROM is used as an identifier.. Error Id: E_CSC_USER_SYNTAXERROR, Error Message: syntax error. Expected one of: '(' ANTISEMIJOIN BROADCASTLEFT BROADCASTRIGHT CROSS EXCEPT FULL FULLCROSS GROUP HASH HAVING INDEXLOOKUP INNER INTERSECT JOIN LEFT LOOP MERGE ON OPTION ORDER OUTER OUTER UNION PAIR PIVOT PRESORT RIGHT SAMPLE SEMIJOIN SERIAL UNION UNPIVOT WHERE WITH ';' ')' ',' . ",
"failureType": "UserError",
"target": "U-SQL1"
}
U-SQL Script
@customerData = EXTRACT
Customerid string,
Name string,
City string,
State string,
Country string,
Account_Created string
FROM "/a_test/customer_data/[dbo].[customerData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@productData = EXTRACT
Product string,
Price string,
FROM "/a_test/product_data/[dbo].[productData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@transactionData = EXTRACT
Transaction_date string,
Product string,
Payment_Type string,
Customerid string,
Name string,
City string,
Account_Created string,
Last_Login string,
Latitude string,
Longitude string
FROM "/a_test/transaction_data/[dbo].[transactionData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@result =
SELECT
t.Customerid,
t.Transaction_date,
t.Product,
t.Payment_Type,
t.Name,
t.City,
c.State,
c.Country,
p.Price,
t.Latitude,
t.Longitude
FROM @transactionData AS t
INNER JOIN @productData AS p on t.Product = p.Product
INNER JOIN @customerData AS c on t.Customerid = c.Customerid
order by t.Customerid;
OUTPUT @result TO "/a_test/final_output"
USING Outputters.Csv();
azure-data-factory u-sql
add a comment |
Hi I am trying to join using U-SQL and the three input files are text file now I am getting error. I am new into these.
When I am trying to join then it is throwing below error. I have already tried with this: USING Extractors.Csv(encoding:System.Text.Encoding.GetEncoding("Windows-1252"));
but same error.
Could you please help to fix the error :
{
"errorCode": "2703",
"message": "Error Id: E_CSC_USER_SYNTAXERROR, Error Message: syntax error. Expected one of: identifier quoted-identifier variable . Error Id: E_CSC_USER_RESERVEDKEYWORDASIDENTIFIER, Error Message: Reserved keyword FROM is used as an identifier.. Error Id: E_CSC_USER_SYNTAXERROR, Error Message: syntax error. Expected one of: '(' ANTISEMIJOIN BROADCASTLEFT BROADCASTRIGHT CROSS EXCEPT FULL FULLCROSS GROUP HASH HAVING INDEXLOOKUP INNER INTERSECT JOIN LEFT LOOP MERGE ON OPTION ORDER OUTER OUTER UNION PAIR PIVOT PRESORT RIGHT SAMPLE SEMIJOIN SERIAL UNION UNPIVOT WHERE WITH ';' ')' ',' . ",
"failureType": "UserError",
"target": "U-SQL1"
}
U-SQL Script
@customerData = EXTRACT
Customerid string,
Name string,
City string,
State string,
Country string,
Account_Created string
FROM "/a_test/customer_data/[dbo].[customerData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@productData = EXTRACT
Product string,
Price string,
FROM "/a_test/product_data/[dbo].[productData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@transactionData = EXTRACT
Transaction_date string,
Product string,
Payment_Type string,
Customerid string,
Name string,
City string,
Account_Created string,
Last_Login string,
Latitude string,
Longitude string
FROM "/a_test/transaction_data/[dbo].[transactionData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@result =
SELECT
t.Customerid,
t.Transaction_date,
t.Product,
t.Payment_Type,
t.Name,
t.City,
c.State,
c.Country,
p.Price,
t.Latitude,
t.Longitude
FROM @transactionData AS t
INNER JOIN @productData AS p on t.Product = p.Product
INNER JOIN @customerData AS c on t.Customerid = c.Customerid
order by t.Customerid;
OUTPUT @result TO "/a_test/final_output"
USING Outputters.Csv();
azure-data-factory u-sql
add a comment |
Hi I am trying to join using U-SQL and the three input files are text file now I am getting error. I am new into these.
When I am trying to join then it is throwing below error. I have already tried with this: USING Extractors.Csv(encoding:System.Text.Encoding.GetEncoding("Windows-1252"));
but same error.
Could you please help to fix the error :
{
"errorCode": "2703",
"message": "Error Id: E_CSC_USER_SYNTAXERROR, Error Message: syntax error. Expected one of: identifier quoted-identifier variable . Error Id: E_CSC_USER_RESERVEDKEYWORDASIDENTIFIER, Error Message: Reserved keyword FROM is used as an identifier.. Error Id: E_CSC_USER_SYNTAXERROR, Error Message: syntax error. Expected one of: '(' ANTISEMIJOIN BROADCASTLEFT BROADCASTRIGHT CROSS EXCEPT FULL FULLCROSS GROUP HASH HAVING INDEXLOOKUP INNER INTERSECT JOIN LEFT LOOP MERGE ON OPTION ORDER OUTER OUTER UNION PAIR PIVOT PRESORT RIGHT SAMPLE SEMIJOIN SERIAL UNION UNPIVOT WHERE WITH ';' ')' ',' . ",
"failureType": "UserError",
"target": "U-SQL1"
}
U-SQL Script
@customerData = EXTRACT
Customerid string,
Name string,
City string,
State string,
Country string,
Account_Created string
FROM "/a_test/customer_data/[dbo].[customerData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@productData = EXTRACT
Product string,
Price string,
FROM "/a_test/product_data/[dbo].[productData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@transactionData = EXTRACT
Transaction_date string,
Product string,
Payment_Type string,
Customerid string,
Name string,
City string,
Account_Created string,
Last_Login string,
Latitude string,
Longitude string
FROM "/a_test/transaction_data/[dbo].[transactionData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@result =
SELECT
t.Customerid,
t.Transaction_date,
t.Product,
t.Payment_Type,
t.Name,
t.City,
c.State,
c.Country,
p.Price,
t.Latitude,
t.Longitude
FROM @transactionData AS t
INNER JOIN @productData AS p on t.Product = p.Product
INNER JOIN @customerData AS c on t.Customerid = c.Customerid
order by t.Customerid;
OUTPUT @result TO "/a_test/final_output"
USING Outputters.Csv();
azure-data-factory u-sql
Hi I am trying to join using U-SQL and the three input files are text file now I am getting error. I am new into these.
When I am trying to join then it is throwing below error. I have already tried with this: USING Extractors.Csv(encoding:System.Text.Encoding.GetEncoding("Windows-1252"));
but same error.
Could you please help to fix the error :
{
"errorCode": "2703",
"message": "Error Id: E_CSC_USER_SYNTAXERROR, Error Message: syntax error. Expected one of: identifier quoted-identifier variable . Error Id: E_CSC_USER_RESERVEDKEYWORDASIDENTIFIER, Error Message: Reserved keyword FROM is used as an identifier.. Error Id: E_CSC_USER_SYNTAXERROR, Error Message: syntax error. Expected one of: '(' ANTISEMIJOIN BROADCASTLEFT BROADCASTRIGHT CROSS EXCEPT FULL FULLCROSS GROUP HASH HAVING INDEXLOOKUP INNER INTERSECT JOIN LEFT LOOP MERGE ON OPTION ORDER OUTER OUTER UNION PAIR PIVOT PRESORT RIGHT SAMPLE SEMIJOIN SERIAL UNION UNPIVOT WHERE WITH ';' ')' ',' . ",
"failureType": "UserError",
"target": "U-SQL1"
}
U-SQL Script
@customerData = EXTRACT
Customerid string,
Name string,
City string,
State string,
Country string,
Account_Created string
FROM "/a_test/customer_data/[dbo].[customerData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@productData = EXTRACT
Product string,
Price string,
FROM "/a_test/product_data/[dbo].[productData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@transactionData = EXTRACT
Transaction_date string,
Product string,
Payment_Type string,
Customerid string,
Name string,
City string,
Account_Created string,
Last_Login string,
Latitude string,
Longitude string
FROM "/a_test/transaction_data/[dbo].[transactionData].txt"
USING Extractors.Csv(skipFirstNRows:1);
@result =
SELECT
t.Customerid,
t.Transaction_date,
t.Product,
t.Payment_Type,
t.Name,
t.City,
c.State,
c.Country,
p.Price,
t.Latitude,
t.Longitude
FROM @transactionData AS t
INNER JOIN @productData AS p on t.Product = p.Product
INNER JOIN @customerData AS c on t.Customerid = c.Customerid
order by t.Customerid;
OUTPUT @result TO "/a_test/final_output"
USING Outputters.Csv();
azure-data-factory u-sql
azure-data-factory u-sql
asked Nov 27 '18 at 11:56
Bhaskar DasBhaskar Das
367115
367115
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
@productData = EXTRACT
Product string,
Price string,
FROM "/a_test/product_data/[dbo].[productData].txt"
USING Extractors.Csv(skipFirstNRows:1);
You have a comma (,) after Price string column, you should delete that one.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53499158%2fu-sql-join-failing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
@productData = EXTRACT
Product string,
Price string,
FROM "/a_test/product_data/[dbo].[productData].txt"
USING Extractors.Csv(skipFirstNRows:1);
You have a comma (,) after Price string column, you should delete that one.
add a comment |
@productData = EXTRACT
Product string,
Price string,
FROM "/a_test/product_data/[dbo].[productData].txt"
USING Extractors.Csv(skipFirstNRows:1);
You have a comma (,) after Price string column, you should delete that one.
add a comment |
@productData = EXTRACT
Product string,
Price string,
FROM "/a_test/product_data/[dbo].[productData].txt"
USING Extractors.Csv(skipFirstNRows:1);
You have a comma (,) after Price string column, you should delete that one.
@productData = EXTRACT
Product string,
Price string,
FROM "/a_test/product_data/[dbo].[productData].txt"
USING Extractors.Csv(skipFirstNRows:1);
You have a comma (,) after Price string column, you should delete that one.
answered Nov 27 '18 at 12:47
DraganBDraganB
455215
455215
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53499158%2fu-sql-join-failing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown