1
다음과 같은 TSV 파일이 있습니다.내부 플랫 파일 및 SQL에서 행 집합 조인
Domain_ID Domain_URL Company_Name_1 Company_Type
179238792 sample.com sample IT
다음과 같은 USQL 테이블이 있습니다.
Domain_ID Domain_URL Company_Name_1
179238792 sample.com sample
각 행 집합과 회사 별 Company_Type을 얻으려고합니다.
스크립트 : 위의 스크립트를 실행 나는 다음과 같은 오류가 발생하고 있지만
@result = EXTRACT
Domain_ID int,
Domain_URL string,
Company_Name_1 string,
Company_Type string
FROM @"sample.txt"
USING Extractors.Tsv(skipFirstNRows:1);
@result1=SELECT * FROM table
@result2= @result2= SELECT @result1.Company_Name_1 , @result1.Company_Type FROM @result1
INNER JOIN @result ON @[email protected]_ID
OUTPUT @result2
TO "/Mobius_POC/Output/Company_Type.tsv"
USING Outputters.Tsv();
.
오류 :
Description
Invalid syntax found in the script.
Resolution
Correct the script syntax, using expected token(s) as a guide.
Details
at token '@result2', line 9
near the ###:
**************
_Name_1 string,
Company_Type string
FROM @"sample.txt"
USING Extractors.Tsv(skipFirstNRows:1);
@result1=SELECT * FROM MobiusPoc.dbo.TLD_AE
### @result2= SELECT @result1.Company_Name_1 , @result1.Company_Type FROM @result1
INNER JOIN @result ON @[email protected]_ID
OUTPUT @resul
Error
E_CSC_USER_SYNTAXERROR
Message
syntax error. Expected one of: '.' ALL ANTISEMIJOIN ANY AS BROADCASTLEFT BROADCASTRIGHT CROSS DISTINCT EXCEPT FROM FULL FULLCROSS GROUP HASH HAVING INDEXLOOKUP INNER INTERSECT JOIN LEFT LOOP MERGE ON OPTION ORDER OUTER OUTER UNION PAIR PARTITION PRESORT PRODUCE READONLY REQUIRED RIGHT SAMPLE SELECT SEMIJOIN SERIAL TO UNIFORM UNION UNIVERSE USING VALUES WHERE WITH ';' '(' ')' ','
앨런 (@ result2 전) 오류 메시지에 있습니다. 이처럼 간단한 구문 오류를 만들면 매우 부끄럽습니다. –