Snowpark Migration Accelerator: Spark용 문제 코드 - Scala¶
SPRKSCL1126¶
메시지: org.apache.sql.functions.covar_pop에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.covar_pop function, which has a workaround.
입력
Below is an example of the org.apache.spark.sql.functions.covar_pop function, first used with column names as the arguments and then with column objects.
출력
The SMA adds the EWI SPRKSCL1126 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent covar_pop function that receives two column objects as arguments. For that reason, the Spark overload that receives two column objects as arguments is directly supported by Snowpark and does not require any changes.
For the overload that receives two string arguments, you can convert the strings into column objects using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1112¶
Message: *spark element* is not supported
카테고리: 변환 오류
설명¶
이 문제는 SMA 가 Snowpark에서 지원되지 않는 Spark 요소의 사용을 감지했을 때 발생하며, 이 문제에는 관련 오류 코드가 없습니다. 이 메시지는 지원되지 않는 모든 Spark 요소에 대해 SMA 가 사용하는 일반적인 오류 코드입니다.
시나리오¶
입력
아래는 Snowpark에서 지원하지 않는 Spark 요소의 예시이므로 EWI 를 생성합니다.
출력
The SMA adds the EWI SPRKSCL1112 to the output code to let you know that this element is not supported by Snowpark.
권장 수정
이는 지원되지 않는 다양한 함수에 적용되는 일반적인 오류 코드이므로 1개의 구체적인 수정 사항이 없습니다. 적절한 작업은 사용 중인 특정 요소에 따라 달라집니다.
해당 요소가 지원되지 않는다고 해서 반드시 해결 방법이나 해결 방법을 찾을 수 없다는 의미는 아니라는 점에 유의하십시오. SMA 자체에서 해결책을 찾을 수 없다는 의미일 뿐입니다.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1143¶
메시지: 기호 테이블을 로딩하는 동안 오류가 발생했습니다
카테고리: 변환 오류
설명¶
이 문제는 SMA 기호 테이블의 기호를 로딩하는 데 오류가 있을 때 표시됩니다. 기호 테이블은 SMA 의 기본 아키텍처의 일부로, 보다 복잡한 변환을 가능하게 합니다.
추가 권장 사항¶
This is unlikely to be an error in the source code itself, but rather is an error in how the SMA processes the source code. The best resolution would be to post an issue in the SMA.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1153¶
경고
This issue code has been deprecated since Spark Conversion Core Version 4.3.2
메시지: org.apache.sql.functions.max에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.max function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.max function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1153 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent max function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1102¶
This issue code has been deprecated since Spark Conversion Core 2.3.22
메시지: 분해는 지원되지 않습니다
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.explode function, which is not supported by Snowpark.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.explode function used to get the consolidated information of the array fields of the dataset.
출력
The SMA adds the EWI SPRKSCL1102 to the output code to let you know that this function is not supported by Snowpark.
권장 수정
Since explode is not supported by Snowpark, the function flatten could be used as a substitute.
다음 수정 사항은 dfExplode 데이터 프레임의 데이터 스큐를 생성한 다음 쿼리 결과를 Spark에서 복제하도록 합니다.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1136¶
경고
This issue code is deprecated since Spark Conversion Core 4.3.2
메시지: org.apache.sql.functions.min에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.min function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.min function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1136 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent min function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that takes a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1167¶
메시지: 입력 폴더에 프로젝트 파일을 찾을 수 없습니다
카테고리: 경고
설명¶
이 문제는 SMA 가 입력 폴더에 프로젝트 구성 파일이 없는 것을 감지할 때 표시됩니다. SMA 가 지원하는 프로젝트 구성 파일은 다음과 같습니다.
build.sbt
build.gradle
pom.xml
추가 권장 사항¶
입력 폴더에 구성 프로젝트 파일을 포함합니다.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1147¶
메시지: org.apache.sql.functions.tanh에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.tanh function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.tanh function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1147 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent tanh function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1116¶
경고
This issue code has been deprecated since Spark Conversion Core Version 2.40.1
메시지: org.apache.sql.functions.split에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.split function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.split function that generates this EWI.
출력
The SMA adds the EWI SPRKSCL1116 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
For the Spark overload that receives two arguments, you can convert the second argument into a column object using the com.snowflake.snowpark.functions.lit function as a workaround.
세 개의 인자를 받는 오버로드는 아직 Snowpark에서 지원되지 않으며 해결 방법이 없습니다.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1122¶
메시지: org.apache.sql.functions.corr에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.corr function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.corr function, first used with column names as the arguments and then with column objects.
출력
The SMA adds the EWI SPRKSCL1122 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent corr function that receives two column objects as arguments. For that reason, the Spark overload that receives column objects as arguments is directly supported by Snowpark and does not require any changes.
For the overload that receives two string arguments, you can convert the strings into column objects using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1173¶
메시지: SQL 임베디드 코드를 처리할 수 없습니다.
카테고리: 경고.
설명¶
이 문제는 SMA 가 처리할 수 없는 SQL 임베디드 코드가 감지될 때 표시됩니다. 그러면 SQL 임베디드 코드는 Snowflake로 변환할 수 없습니다.
시나리오¶
입력
다음은 처리할 수 없는 SQL 임베디드 코드의 예시입니다.
출력
The SMA adds the EWI SPRKSCL1173 to the output code to let you know that the SQL-embedded code can not be processed.
권장 수정
SQL 임베디드 코드가 보간, 변수 또는 문자열 연결이 없는 문자열인지 확인하십시오.
추가 권장 사항¶
You can find more information about SQL-embedded here.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1163¶
메시지: 요소가 리터럴이 아니므로 평가할 수 없습니다.
카테고리: 변환 오류입니다.
설명¶
이 문제는 현재 처리 요소가 리터럴이 아닌 경우 SMA 가 평가할 수 없을 때 발생합니다.
시나리오¶
입력
다음은 처리할 요소가 리터럴이 아니며 SMA 가 평가할 수 없는 경우의 예시입니다.
출력
The SMA adds the EWI SPRKSCL1163 to the output code to let you know that format_type parameter is not a literal and it can not be evaluated by the SMA.
권장 수정
예기치 않은 동작을 방지하려면 변수 값이 유효한 값인지 확인하십시오.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1132¶
메시지: org.apache.sql.functions.grouping_id에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.grouping_id function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.grouping_id function, first used with multiple column name as arguments and then with column objects.
출력
The SMA adds the EWI SPRKSCL1132 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent grouping_id function that receives multiple column objects as arguments. For that reason, the Spark overload that receives multiple column objects as arguments is directly supported by Snowpark and does not require any changes.
For the overload that receives multiple string arguments, you can convert the strings into column objects using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1106¶
경고
이 문제 코드는 사용 중단 되었습니다
메시지: 작성기 옵션은 지원되지 않습니다.
카테고리: 변환 오류입니다.
설명¶
이 문제는 도구가 작성기 문에서 Snowpark에서 지원하지 않는 옵션의 사용을 감지할 때 표시됩니다.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.DataFrameWriter.option used to add options to a writer statement.
출력
The SMA adds the EWI SPRKSCL1106 to the output code to let you know that the option method is not supported by Snowpark.
권장 수정
이 시나리오에 대한 권장 수정 사항은 없습니다
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1157¶
메시지: org.apache.sql.functions.kurtosis에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.kurtosis function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.kurtosis function that generates this EWI. In this example, the kurtosis function is used to calculate the kurtosis of selected column.
출력
The SMA adds the EWI SPRKSCL1157 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent kurtosis function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1146¶
메시지: org.apache.sql.functions.tan에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.tan function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.tan function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1146 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent tan function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1117¶
경고
This issue code is deprecated since Spark Conversion Core 2.40.1
메시지: org.apache.sql.functions.translate에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.translate function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.translate function that generates this EWI. In this example, the translate function is used to replace the characters ‘a’, ‘e’ and ‘o’ in each word with ‘1’, ‘2’ and ‘3’, respectively.
출력
The SMA adds the EWI SPRKSCL1117 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
As a workaround, you can convert the second and third argument into a column object using the com.snowflake.snowpark.functions.lit function.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1123¶
메시지: org.apache.sql.functions.cos에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.cos function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.cos function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1123 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent cos function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1172¶
메시지: Snowpark는 메타데이터 매개 변수로 StructFiled 를 지원하지 않습니다.
카테고리: 경고
설명¶
This issue appears when the SMA detects that org.apache.spark.sql.types.StructField.apply with org.apache.spark.sql.types.Metadata as parameter. This is because Snowpark does not supported the metadata parameter.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.types.StructField.apply function that generates this EWI. In this example, the apply function is used to generate and instance of StructField.
출력
The SMA adds the EWI SPRKSCL1172 to the output code to let you know that metadata parameter is not supported by Snowflake.
권장 수정
Snowpark has an equivalent com.snowflake.snowpark.types.StructField.apply function that receives three parameters. Then, as workaround, you can try to remove the metadata argument.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1162¶
참고
이 문제 코드는 사용 중단 되었습니다
메시지: Dbc 파일을 추출하는 동안 오류가 발생했습니다.
카테고리: 경고.
설명¶
이 문제는 dbc 파일을 추출할 수 없을 때 표시됩니다. 이 경고는 다음 중 한 가지 이상의 이유로 인해 발생할 수 있습니다. 너무 무겁거나, 액세스할 수 없거나, 읽기 전용입니다.
추가 권장 사항¶
해결 방법으로 파일이 너무 커서 처리할 수 없는 경우 파일 크기를 확인할 수 있습니다. 또한 도구가 액세스할 수 있는지 분석하여 액세스 문제를 방지하십시오.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1133¶
메시지: org.apache.sql.functions.least에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.least function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.least function, first used with multiple column name as arguments and then with column objects.
출력
The SMA adds the EWI SPRKSCL1133 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent least function that receives multiple column objects as arguments. For that reason, the Spark overload that receives multiple column objects as arguments is directly supported by Snowpark and does not require any changes.
For the overload that receives multiple string arguments, you can convert the strings into column objects using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1107¶
경고
이 문제 코드는 사용 중단 되었습니다
메시지: 작성기 저장은 지원되지 않습니다.
카테고리: 변환 오류입니다.
설명¶
이 문제는 도구가 작성기 문에서 Snowpark에서 지원하지 않는 작성기 저장 방법의 사용을 감지할 때 표시됩니다.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.DataFrameWriter.save used to save the DataFrame content.
출력
The SMA adds the EWI SPRKSCL1107 to the output code to let you know that the save method is not supported by Snowpark.
권장 수정
이 시나리오에 대한 권장 수정 사항은 없습니다
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1156¶
메시지: org.apache.sql.functions.degrees에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.degrees function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.degrees function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1156 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent degrees function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1127¶
메시지: org.apache.sql.functions.covar_samp에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.covar_samp function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.covar_samp function, first used with column names as the arguments and then with column objects.
출력
The SMA adds the EWI SPRKSCL1127 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent covar_samp function that receives two column objects as arguments. For that reason, the Spark overload that receives two column objects as arguments is directly supported by Snowpark and does not require any changes.
For the overload that receives two string arguments, you can convert the strings into column objects using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1113¶
메시지: org.apache.sql.functions.next_day에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.next_day function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.next_day function, first used with a string as the second argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1113 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent next_day function that receives two column objects as arguments. For that reason, the Spark overload that receives two column objects as arguments is directly supported by Snowpark and does not require any changes.
For the overload that receives a column object and a string, you can convert the string into a column object using the com.snowflake.snowpark.functions.lit function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1002¶
Message: This code section has recovery from parsing errors *statement*
카테고리: 구문 분석 오류.
설명¶
이 문제는 SMA 가 파일 코드에서 올바르게 읽거나 이해할 수 없는 문을 감지하면 구문 분석 오류 로 표시되지만, SMA 에서 해당 구문 분석 오류를 복구하고 파일 코드를 계속 분석할 수 있습니다. 이 경우 SMA 는 오류 없이 파일의 코드를 처리할 수 있습니다.
시나리오¶
입력
다음은 SMA 가 복구할 수 있는 잘못된 Scala 코드의 예입니다.
출력
The SMA adds the EWI SPRKSCL1002 to the output code to let you know that the code of the file has parsing errors, however the SMA can recovery from that error and continue analyzing the code of the file.
권장 수정
메시지가 문의 오류를 정확히 찾아내므로 잘못된 구문을 식별하여 제거하거나 해당 문을 설명하여 구문 분석 오류를 방지할 수 있습니다.
추가 권장 사항¶
파일의 코드가 유효한 Scala 코드인지 확인합니다.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1142¶
Message: *spark element* is not defined
카테고리: 변환 오류
설명¶
이 문제는 SMA 에서 지정된 요소에 대한 적절한 매핑 상태를 확인할 수 없을 때 표시됩니다. 즉, SMA 는 이 요소가 Snowpark에서 지원되는지 여부를 아직 알지 못합니다. 이 코드는 정의되지 않은 요소에 대해 SMA 가 사용하는 일반적인 오류 코드입니다.
시나리오¶
입력
Below is an example of a function for which the SMA could not determine an appropriate mapping status, and therefore it generated this EWI. In this case, you should assume that notDefinedFunction() is a valid Spark function and the code runs.
출력
The SMA adds the EWI SPRKSCL1142 to the output code to let you know that this element is not defined.
권장 수정
문제를 식별하기 위해 다음 유효성 검사를 수행할 수 있습니다.
유효한 Spark 요소인지 확인합니다.
요소의 구문이 올바른지, 철자가 올바른지 확인합니다.
SMA 가 지원하는 Spark 버전을 사용하고 있는지 확인하십시오.
If this is a valid Spark element, please report that you encountered a conversion error on that particular element using the Report an Issue option of the SMA and include any additional information that you think may be helpful.
Please note that if an element is not defined by the SMA, it does not mean necessarily that it is not supported by Snowpark. You should check the Snowpark Documentation to verify if an equivalent element exist.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1152¶
메시지: org.apache.sql.functions.variance에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.variance function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.variance function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1152 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent variance function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1103¶
이 문제 코드는 사용 중단 되었습니다
Message: SparkBuilder method is not supported *method name*
카테고리: 변환 오류
설명¶
이 문제는 SparkBuilder 메서드 체이닝에서 Snowflake가 지원하지 않는 메서드를 SMA 가 감지할 때 표시됩니다. 따라서 리더 문의 마이그레이션에 영향을 미칠 수 있습니다.
다음은 지원되지 않는 SparkBuilder 메서드입니다.
master
appName
enableHiveSupport
withExtensions
시나리오¶
입력
아래는 SparkBuilder 메서드 체인 예시로, 많은 메서드가 Snowflake에서 지원되지 않습니다.
출력
The SMA adds the EWI SPRKSCL1103 to the output code to let you know that master, appName and enableHiveSupport methods are not supported by Snowpark. Then, it might affects the migration of the Spark Session statement.
권장 수정
세션을 생성하려면 적절한 Snowflake Snowpark 구성을 추가해야 합니다.
이 예제에서는 config 변수가 사용됩니다.
또한 연결 정보와 함께 configFile(profile.properties)을 사용하는 것이 좋습니다.
And with the Session.builder.configFile the session can be created:
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1137¶
메시지: org.apache.sql.functions.sin에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.sin function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.sin function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1137 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent sin function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1166¶
참고
이 문제 코드는 사용 중단 되었습니다
메시지: org.apache.spark.sql.DataFrameReader.format은 지원되지 않습니다.
카테고리: 경고.
설명¶
This issue appears when the org.apache.spark.sql.DataFrameReader.format has an argument that is not supported by Snowpark.
시나리오¶
There are some scenarios depending on the type of format you are trying to load. It can be a supported, or non-supported format.
시나리오 1¶
입력
이 도구는 로딩하려는 형식의 유형을 분석하며, 지원되는 형식은 다음과 같습니다.
csvjsonorcparquettext
The below example shows how the tool transforms the format method when passing a csv value.
출력
The tool transforms the format method into a csv method call when load function has one parameter.
권장 수정
이 경우 도구에 EWI 가 표시되지 않으므로 수정할 필요가 없습니다.
시나리오 2¶
입력
The below example shows how the tool transforms the format method when passing a net.snowflake.spark.snowflake value.
출력
The tool shows the EWI SPRKSCL1166 indicating that the value net.snowflake.spark.snowflake is not supported.
권장 수정
For the not supported scenarios there is no specific fix since it depends on the files that are trying to be read.
시나리오 3¶
입력
The below example shows how the tool transforms the format method when passing a csv, but using a variable instead.
출력
Since the tool can not determine the value of the variable in runtime, shows the EWI SPRKSCL1163 indicating that the value is not supported.
권장 수정
As a workaround, you can check the value of the variable and add it as a string to the format call.
추가 권장 사항¶
The Snowpark location only accepts cloud locations using a snowflake stage.
The documentation of methods supported by Snowpark can be found in the documentation
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1118¶
메시지: org.apache.sql.functions.trunc에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.trunc function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.trunc function that generates this EWI.
출력
The SMA adds the EWI SPRKSCL1118 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
As a workaround, you can convert the second argument into a column object using the com.snowflake.snowpark.functions.lit function.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1149¶
메시지: org.apache.sql.functions.toRadians에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.toRadians function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.toRadians function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1149 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
As a workaround, you can use the radians function. For the Spark overload that receives a string argument, you additionally have to convert the string into a column object using the com.snowflake.snowpark.functions.col function.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1159¶
메시지: org.apache.sql.functions.stddev_samp에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.stddev_samp function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.stddev_samp function that generates this EWI. In this example, the stddev_samp function is used to calculate the sample standard deviation of selected column.
출력
The SMA adds the EWI SPRKSCL1159 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent stddev_samp function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1108¶
참고
이 문제 코드는 사용 중단 되었습니다.
메시지: org.apache.spark.sql.DataFrameReader.format은 지원되지 않습니다.
카테고리: 경고.
설명¶
This issue appears when the org.apache.spark.sql.DataFrameReader.format has an argument that is not supported by Snowpark.
시나리오¶
There are some scenarios depending on the type of format you are trying to load. It can be a supported, or non-supported format.
시나리오 1¶
입력
이 도구는 로딩하려는 형식의 유형을 분석하며, 지원되는 형식은 다음과 같습니다.
csvjsonorcparquettext
The below example shows how the tool transforms the format method when passing a csv value.
출력
The tool transforms the format method into a csv method call when load function has one parameter.
권장 수정
이 경우 도구에 EWI 가 표시되지 않으므로 수정할 필요가 없습니다.
시나리오 2¶
입력
The below example shows how the tool transforms the format method when passing a net.snowflake.spark.snowflake value.
출력
The tool shows the EWI SPRKSCL1108 indicating that the value net.snowflake.spark.snowflake is not supported.
권장 수정
For the not supported scenarios there is no specific fix since it depends on the files that are trying to be read.
시나리오 3¶
입력
The below example shows how the tool transforms the format method when passing a csv, but using a variable instead.
출력
Since the tool can not determine the value of the variable in runtime, shows the EWI SPRKSCL1163 indicating that the value is not supported.
권장 수정
As a workaround, you can check the value of the variable and add it as a string to the format call.
추가 권장 사항¶
The Snowpark location only accepts cloud locations using a snowflake stage.
The documentation of methods supported by Snowpark can be found in the documentation
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1128¶
메시지: org.apache.sql.functions.exp에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.exp function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.exp function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1128 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent exp function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1169¶
Message: *Spark element* is missing on the method chaining.
카테고리: 경고.
설명¶
이 문제는 SMA 가 메서드 체인에서 Spark 요소 호출이 누락된 것을 감지할 때 표시됩니다. SMA 는 문을 분석하기 위해 해당 Spark 요소를 알아야 합니다.
시나리오¶
입력
아래는 메서드 체인에서 로딩 함수 호출이 누락된 예제입니다.
출력
The SMA adds the EWI SPRKSCL1169 to the output code to let you know that load function call is missing on the method chaining and SMA can not analyze the statement.
권장 수정
메서드 연쇄의 모든 함수 호출이 동일한 문에 있는지 확인하십시오.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1138¶
메시지: org.apache.sql.functions.sinh에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.sinh function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.sinh function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1138 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent sinh function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1129¶
메시지: org.apache.sql.functions.floor에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.floor function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.floor function, first used with a column name as an argument, then with a column object and finally with two column objects.
출력
The SMA adds the EWI SPRKSCL1129 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent floor function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
For the overload that receives a column object and a scale, you can use the callBuiltin function to invoke the Snowflake builtin FLOOR function. To use it, you should pass the string “floor” as the first argument, the column as the second argument and the scale as the third argument.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1168¶
Message: *Spark element* with argument(s) value(s) *given arguments* is not supported.
카테고리: 경고.
설명¶
이 문제는 SMA 가 지정된 매개 변수가 있는 Spark 요소가 지원되지 않음을 감지할 때 표시됩니다.
시나리오¶
입력
아래는 매개 변수가 지원되지 않는 Spark 요소의 예입니다.
출력
The SMA adds the EWI SPRKSCL1168 to the output code to let you know that Spark element with the given parameter is not supported.
권장 수정
이 시나리오의 경우 특별한 수정 사항이 없습니다.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1139¶
메시지: org.apache.sql.functions.sqrt에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.sqrt function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.sqrt function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1139 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent sqrt function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1119¶
메시지: org.apache.sql.Column.endsWith에는 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.Column.endsWith function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.Column.endsWith function, first used with a literal string argument and then with a column object argument.
출력
The SMA adds the EWI SPRKSCL1119 to the output code to let you know that this function is not directly supported by Snowpark, but it has a workaround.
권장 수정
As a workaround, you can use the com.snowflake.snowpark.functions.endswith function, where the first argument would be the column whose values will be checked and the second argument the suffix to check against the column values. Please note that if the argument of the Spark’s endswith function is a literal string, you should convert it into a column object using the com.snowflake.snowpark.functions.lit function.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1148¶
메시지: org.apache.sql.functions.toDegrees에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.toDegrees function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.toDegrees function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1148 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
As a workaround, you can use the degrees function. For the Spark overload that receives a string argument, you additionally have to convert the string into a column object using the com.snowflake.snowpark.functions.col function.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1158¶
메시지: org.apache.sql.functions.skewness에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.skewness function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.skewness function that generates this EWI. In this example, the skewness function is used to calculate the skewness of selected column.
출력
The SMA adds the EWI SPRKSCL1158 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent skew function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1109¶
참고
이 문제 코드는 사용 중단 되었습니다
메시지: 이 매개 변수는 org.apache.spark.sql.DataFrameReader.option에 대해 정의되지 않았습니다.
카테고리: 경고
설명¶
This issue appears when the SMA detects that giving parameter of org.apache.spark.sql.DataFrameReader.option is not defined.
시나리오¶
입력
Below is an example of undefined parameter for org.apache.spark.sql.DataFrameReader.option function.
출력
The SMA adds the EWI SPRKSCL1109 to the output code to let you know that giving parameter to the org.apache.spark.sql.DataFrameReader.option function is not defined.
권장 수정
Check the Snowpark documentation for reader format option here, in order to identify the defined options.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1114¶
메시지: org.apache.sql.functions.repeat에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.repeat function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.repeat function that generates this EWI.
출력
The SMA adds the EWI SPRKSCL1114 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
As a workaround, you can convert the second argument into a column object using the com.snowflake.snowpark.functions.lit function.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1145¶
메시지: org.apache.sql.functions.sumDistinct에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.sumDistinct function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.sumDistinct function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1145 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
As a workaround, you can use the sum_distinct function. For the Spark overload that receives a string argument, you additionally have to convert the string into a column object using the com.snowflake.snowpark.functions.col function.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1171¶
메시지: Snowpark는 매개 변수가 2개 이상이거나 정규식 패턴을 포함하는 분할 함수를 지원하지 않습니다. 자세한 내용은 설명서를 참조하십시오.
카테고리: 경고.
설명¶
This issue appears when the SMA detects that org.apache.spark.sql.functions.split has more than two parameters or containing regex pattern.
시나리오¶
The split function is used to separate the given column around matches of the given pattern. This Spark function has three overloads.
시나리오 1¶
입력
Below is an example of the org.apache.spark.sql.functions.split function that generates this EWI. In this example, the split function has two parameters and the second argument is a string, not a regex pattern.
출력
The SMA adds the EWI SPRKSCL1171 to the output code to let you know that this function is not fully supported by Snowpark.
권장 수정
Snowpark has an equivalent split function that receives a column object as a second argument. For that reason, the Spark overload that receives a string argument in the second argument, but it is not a regex pattern, can convert the string into a column object using the com.snowflake.snowpark.functions.lit function as a workaround.
시나리오 2¶
입력
Below is an example of the org.apache.spark.sql.functions.split function that generates this EWI. In this example, the split function has two parameters and the second argument is a regex pattern.
출력
The SMA adds the EWI SPRKSCL1171 to the output code to let you know that this function is not fully supported by Snowpark because regex patterns are not supported by Snowflake.
권장 수정
Snowflake는 정규식 패턴을 지원하지 않으므로 정규식 패턴이 아닌 문자열로 패턴을 대체해 보십시오.
시나리오 3¶
입력
Below is an example of the org.apache.spark.sql.functions.split function that generates this EWI. In this example, the split function has more than two parameters.
출력
The SMA adds the EWI SPRKSCL1171 to the output code to let you know that this function is not fully supported by Snowpark, because Snowflake does not have a split function with more than two parameters.
권장 수정
Snowflake는 매개 변수가 2개 이상인 분할 함수를 지원하지 않으므로 Snowflake에서 지원하는 분할 함수를 사용하십시오.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1120¶
메시지: org.apache.sql.functions.asin에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.asin function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.asin function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1120 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent asin function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1130¶
메시지: org.apache.sql.functions.greatest에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.greatest function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.greatest function, first used with multiple column names as arguments and then with multiple column objects.
출력
The SMA adds the EWI SPRKSCL1130 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent greatest function that receives multiple column objects as arguments. For that reason, the Spark overload that receives column objects as arguments is directly supported by Snowpark and does not require any changes.
For the overload that receives multiple string arguments, you can convert the strings into column objects using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
설명: >- Snowpark 및 Snowpark Extension이 프로젝트 구성 파일에 추가되지 않았습니다.
SPRKSCL1161¶
메시지: 종속성을 추가하지 못했습니다.
카테고리: 변환 오류입니다.
설명¶
이 문제는 SMA 가 프로젝트 구성 파일에서 SMA 가 지원되지 않는 Spark 버전을 감지하여 SMA 가 해당 프로젝트 구성 파일에 Snowpark 및 Snowpark Extensions 종속성을 추가할 수 없기 때문에 발생합니다. Snowpark 종속성을 추가하지 않으면 마이그레이션된 코드가 컴파일되지 않습니다.
시나리오¶
가능한 시나리오는 sbt, gradle 및 pom.xml의 3가지입니다. SMA 는 프로젝트 구성 파일을 처리하기 위해 Spark 종속성을 제거하고 Snowpark 및 Snowpark Extension 종속성을 추가하려고 시도합니다.
시나리오 1¶
입력
Below is an example of the dependencies section of a sbt project configuration file.
출력
The SMA adds the EWI SPRKSCL1161 to the issues inventory since the Spark version is not supported and keeps the output the same.
권장 수정
Manually, remove the Spark dependencies and add Snowpark and Snowpark Extensions dependencies to the sbt project configuration file.
프로젝트의 요구 사항을 가장 잘 충족하는 Snowpark 버전을 사용하십시오.
시나리오 2¶
입력
Below is an example of the dependencies section of a gradle project configuration file.
출력
The SMA adds the EWI SPRKSCL1161 to the issues inventory since the Spark version is not supported and keeps the output the same.
권장 수정
Manually, remove the Spark dependencies and add Snowpark and Snowpark Extensions dependencies to the gradle project configuration file.
종속성 버전이 프로젝트 요구 사항에 맞는지 확인하십시오.
시나리오 3¶
입력
Below is an example of the dependencies section of a pom.xml project configuration file.
출력
The SMA adds the EWI SPRKSCL1161 to the issues inventory since the Spark version is not supported and keeps the output the same.
권장 수정
Manually, remove the Spark dependencies and add Snowpark and Snowpark Extensions dependencies to the gradle project configuration file.
종속성 버전이 프로젝트 요구 사항에 맞는지 확인하십시오.
추가 권장 사항¶
입력에 프로젝트 구성 파일이 있는지 확인합니다.
build.sbt
build.gradle
pom.xml
SMA 가 지원하는 Spark 버전은 2.12:3.1.2입니다
You can check the latest Snowpark version here.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1155¶
경고
This issue code has been deprecated since Spark Conversion Core Version 4.3.2
메시지: org.apache.sql.functions.countDistinct에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.countDistinct function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.countDistinct function, first used with column names as arguments and then with column objects.
출력
The SMA adds the EWI SPRKSCL1155 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
As a workaround, you can use the count_distinct function. For the Spark overload that receives string arguments, you additionally have to convert the strings into column objects using the com.snowflake.snowpark.functions.col function.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1104¶
이 문제 코드는 사용 중단 되었습니다
메시지: Spark 세션 빌더 옵션이 지원되지 않습니다.
카테고리: 변환 오류입니다.
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.SparkSession.Builder.config function, which is setting an option of the Spark Session and it is not supported by Snowpark.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.SparkSession.Builder.config function used to set an option in the Spark Session.
출력
The SMA adds the EWI SPRKSCL1104 to the output code to let you know config method is not supported by Snowpark. Then, it is not possible to set options in the Spark Session via config function and it might affects the migration of the Spark Session statement.
권장 수정
세션을 생성하려면 적절한 Snowflake Snowpark 구성을 추가해야 합니다.
이 예제에서는 config 변수가 사용됩니다.
또한 연결 정보와 함께 configFile(profile.properties)을 사용하는 것이 좋습니다.
And with the Session.builder.configFile the session can be created:
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1124¶
메시지: org.apache.sql.functions.cosh에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.cosh function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.cosh function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1124 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent cosh function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1175¶
Message: The two-parameter udf function is not supported in Snowpark. It should be converted into a single-parameter udf function. Please check the documentation to learn how to manually modify the code to make it work in Snowpark.
카테고리: 변환 오류입니다.
설명¶
This issue appears when the SMA detects an use of the two-parameter org.apache.spark.sql.functions.udf function in the source code, because Snowpark does not have an equivalent two-parameter udf function, then the output code might not compile.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.udf function that generates this EWI. In this example, the udf function has two parameters.
출력
The SMA adds the EWI SPRKSCL1175 to the output code to let you know that the udf function is not supported, because it has two parameters.
권장 수정
Snowpark only supports the single-parameter udf function (without the return type parameter), so you should convert your two-parameter udf function into a single-parameter udf function in order to make it work in Snowpark.
예를 들어, 위에서 언급한 샘플 코드의 경우 수동으로 이렇게 변환해야 합니다.
Please note that there are some caveats about creating udf in Snowpark that might require you to make some additional manual changes to your code. Please check this other recommendations here related with creating single-parameter udf functions in Snowpark for more details.
추가 권장 사항¶
To learn more about how to create user-defined functions in Snowpark, please refer to the following documentation: Creating User-Defined Functions (UDFs) for DataFrames in Scala
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1001¶
Message: This code section has parsing errors. The parsing error was found at: line *line number*, column *column number*. When trying to parse *statement*. This file was not converted, so it is expected to still have references to the Spark API.
카테고리: 구문 분석 오류.
설명¶
이 문제는 SMA 가 파일의 코드에서 올바르게 읽거나 이해할 수 없는 문장을 감지했을 때 발생하며, 구문 분석 오류 라고 합니다. 또한 이 문제는 파일에 1개 이상의 구문 분석 오류가 있을 때 표시됩니다.
시나리오¶
입력
다음은 잘못된 Scala 코드의 예입니다.
출력
The SMA adds the EWI SPRKSCL1001 to the output code to let you know that the code of the file has parsing errors. Therefore, SMA is not able to process a file with this error.
권장 수정
메시지가 오류 문을 정확히 찾아내므로 잘못된 구문을 식별하여 제거하거나 해당 문을 설명하여 구문 분석 오류를 방지할 수 있습니다.
추가 권장 사항¶
파일의 코드가 유효한 Scala 코드인지 확인합니다.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1141¶
메시지: org.apache.sql.functions.stddev_pop에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.stddev_pop function, which has a workaround.
시나리오¶
Below is an example of the org.apache.spark.sql.functions.stddev_pop function, first used with a column name as an argument and then with a column object.
입력
출력
The SMA adds the EWI SPRKSCL1141 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent stddev_pop function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1110¶
참고
이 문제 코드는 사용 중단 되었습니다
Message: Reader method not supported *method name*.
카테고리: 경고
설명¶
이 문제는 DataFrameReader 메서드 체이닝에서 Snowflake가 지원하지 않는 메서드를 SMA 가 감지할 때 표시됩니다. 그러면 리더 문의 마이그레이션에 영향을 미칠 수 있습니다.
시나리오¶
입력
아래는 로딩 메서드가 Snowflake에서 지원되지 않는 DataFrameReader 메서드 체인 예시입니다.
출력
The SMA adds the EWI SPRKSCL1110 to the output code to let you know that load method is not supported by Snowpark. Then, it might affects the migration of the reader statement.
권장 수정
Check the Snowpark documentation for reader here, in order to know the supported methods by Snowflake.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1100¶
This issue code has been deprecated since Spark Conversion Core 2.3.22
메시지: 파티션 재분할은 지원되지 않습니다.
카테고리: 구문 분석 오류.
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.DataFrame.repartition function, which is not supported by Snowpark. Snowflake manages the storage and the workload on the clusters making repartition operation inapplicable.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.DataFrame.repartition function used to return a new DataFrame partitioned by the given partitioning expressions.
출력
The SMA adds the EWI SPRKSCL1100 to the output code to let you know that this function is not supported by Snowpark.
권장 수정
Snowflake는 클러스터의 저장소와 워크로드를 관리하기 때문에 파티션 재분할 작업을 적용할 수 없습니다. 즉, 조인 전 재분할을 사용할 필요는 전혀 없습니다.
추가 권장 사항¶
The Snowflake’s architecture guide provides insight about Snowflake storage management.
Snowpark Dataframe reference could be useful in how to adapt a particular scenario without the need of repartition.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1151¶
메시지: org.apache.sql.functions.var_samp에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.var_samp function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.var_samp function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1151 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent var_samp function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
설명: >- DataFrameReader 메서드 체인의 리더 형식이 Snowpark에서 정의한 형식이 아닙니다.
SPRKSCL1165¶
메시지: DataFrameReader 메서드 체인에 대한 리더 형식을 정의할 수 없습니다
카테고리: 경고
설명¶
This issue appears when the SMA detects that format of the reader in DataFrameReader method chaining is not one of the following supported for Snowpark: avro, csv, json, orc, parquet and xml. Therefore, the SMA can not determine if setting options are defined or not.
시나리오¶
입력
아래는 DataFrameReader 메서드 체인 예시로, SMA 가 리더의 형식을 결정할 수 있습니다.
출력
The SMA adds the EWI SPRKSCL1165 to the output code to let you know that format of the reader can not be determine in the giving DataFrameReader method chaining.
권장 수정
Check the Snowpark documentation here to get more information about format of the reader.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1134¶
메시지: org.apache.sql.functions.log에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.log function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.log function that generates this EWI.
출력
The SMA adds the EWI SPRKSCL1134 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Below are the different workarounds for all the overloads of the log function.
1. def log(base: Double, columnName: String): 열
You can convert the base into a column object using the com.snowflake.snowpark.functions.lit function and convert the column name into a column object using the com.snowflake.snowpark.functions.col function.
2. def log(base: Double, a: Column): 열
You can convert the base into a column object using the com.snowflake.snowpark.functions.lit function.
3.def log(columnName: String): 열
You can pass lit(Math.E) as the first argument and convert the column name into a column object using the com.snowflake.snowpark.functions.col function and pass it as the second argument.
4. def log(e: Column): 열
You can pass lit(Math.E) as the first argument and the column object as the second argument.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1125¶
경고
This issue code is deprecated since Spark Conversion Core 2.9.0
메시지: org.apache.sql.functions.count에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.count function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.count function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1125 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent count function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1174¶
Message: The single-parameter udf function is supported in Snowpark but it might require manual intervention. Please check the documentation to learn how to manually modify the code to make it work in Snowpark.
카테고리: 경고.
설명¶
This issue appears when the SMA detects an use of the single-parameter org.apache.spark.sql.functions.udf function in the code. Then, it might require a manual intervention.
The Snowpark API provides an equivalent com.snowflake.snowpark.functions.udf function that allows you to create a user-defined function from a lambda or function in Scala, however, there are some caveats about creating udf in Snowpark that might require you to make some manual changes to your code in order to make it work properly.
시나리오¶
The Snowpark udf function should work as intended for a wide range of cases without requiring manual intervention. However, there are some scenarios that would requiere you to manually modify your code in order to get it work in Snowpark. Some of those scenarios are listed below:
시나리오 1¶
입력
아래는 App Trait을 사용하여 오브젝트에 UDFs 를 생성하는 예제입니다.
The Scala’s App trait simplifies creating executable programs by providing a main method that automatically runs the code within the object definition. Extending App delays the initialization of the fields until the main method is executed, which can affect the UDFs definitions if they rely on initialized fields. This means that if an object extends App and the udf references an object field, the udf definition uploaded to Snowflake will not include the initialized value of the field. This can result in null values being returned by the udf.
For example, in the following code the variable myValue will resolve to null in the udf definition:
출력
The SMA adds the EWI SPRKSCL1174 to the output code to let you know that the single-parameter udf function is supported in Snowpark but it requires manual intervention.
권장 수정
To avoid this issue, it is recommended to not extend App and implement a separate main method for your code. This ensure that object fields are initialized before udf definitions are created and uploaded to Snowflake.
For more details about this topic, see Caveat About Creating UDFs in an Object With the App Trait.
시나리오 2¶
입력
아래는 Jupyter Notebooks에서 UDFs 를 생성하는 예제입니다.
출력
The SMA adds the EWI SPRKSCL1174 to the output code to let you know that the single-parameter udf function is supported in Snowpark but it requires manual intervention.
권장 수정
To create a udf in a Jupyter Notebook, you should define the implementation of your function in a class that extends Serializable. For example, you should manually convert it into this:
For more details about how to create UDFs in Jupyter Notebooks, see Creating UDFs in Jupyter Notebooks.
추가 권장 사항¶
To learn more about how to create user-defined functions in Snowpark, please refer to the following documentation: Creating User-Defined Functions (UDFs) for DataFrames in Scala
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1000¶
Message: Source project spark-core version is *version number*, the spark-core version supported by snowpark is 2.12:3.1.2 so there may be functional differences between the existing mappings
카테고리: 경고
설명¶
This issue appears when the SMA detects a version of the spark-core that is not supported by SMA. Therefore, there may be functional differences between the existing mappings and the output might have unexpected behaviors.
추가 권장 사항¶
SMA 에서 지원하는 Spark Core 버전은 2.12:3.1.2입니다. 소스 코드 버전을 변경하는 것을 고려하십시오.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1140¶
메시지: org.apache.sql.functions.stddev에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.stddev function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.stddev function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1140 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent stddev function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1111¶
참고
이 문제 코드는 사용 중단 되었습니다
메시지: CreateDecimalType 은 지원되지 않습니다.
카테고리: 변환 오류입니다.
설명¶
This issue appears when the SMA detects a usage org.apache.spark.sql.types.DataTypes.CreateDecimalType function.
시나리오¶
입력
DataTypes.CreateDecimalType 함수의 사용 예는 다음과 같습니다.
출력
The SMA adds the EWI SPRKSCL1111 to the output code to let you know that CreateDecimalType function is not supported by Snowpark.
권장 수정
아직 권장되는 수정 사항은 없습니다.
메시지: Spark 세션 빌더 옵션이 지원되지 않습니다.
카테고리: 변환 오류입니다.
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.SparkSession.Builder.config function, which is setting an option of the Spark Session and it is not supported by Snowpark.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.SparkSession.Builder.config function used to set an option in the Spark Session.
출력
The SMA adds the EWI SPRKSCL1104 to the output code to let you know config method is not supported by Snowpark. Then, it is not possible to set options in the Spark Session via config function and it might affects the migration of the Spark Session statement.
권장 수정
세션을 생성하려면 적절한 Snowflake Snowpark 구성을 추가해야 합니다.
이 예제에서는 config 변수가 사용됩니다.
또한 연결 정보와 함께 configFile(profile.properties)을 사용하는 것이 좋습니다.
And with the Session.builder.configFile the session can be created:
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1101¶
This issue code has been deprecated since Spark Conversion Core 2.3.22
메시지: 브로드캐스트는 지원되지 않습니다
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.broadcast function, which is not supported by Snowpark. This function is not supported because Snowflake does not support broadcast variables.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.broadcast function used to create a broadcast object to use on each Spark cluster:
출력
The SMA adds the EWI SPRKSCL1101 to the output code to let you know that this function is not supported by Snowpark.
권장 수정
Snowflake는 클러스터의 저장소와 워크로드를 관리하기 때문에 브로드캐스트 오브젝트를 적용할 수 없습니다. 즉, 브로드캐스트 사용이 전혀 요구되지 않을 수도 있지만 각 케이스에 대한 추가 분석이 필요합니다.
The recommended approach is replace a Spark dataframe broadcast by a Snowpark regular dataframe or by using a dataframe method as Join.
For the proposed input the fix is to adapt the join to use directly the dataframe collegeDF without the use of broadcast for the dataframe.
추가 권장 사항¶
The Snowflake’s architecture guide provides insight about Snowflake storage management.
Snowpark Dataframe reference could be useful in how to adapt a particular broadcast scenario.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1150¶
메시지: org.apache.sql.functions.var_pop에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.var_pop function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.var_pop function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1150 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent var_pop function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
설명: >- org.apache.spark.sql.DataFrameReader.option 함수의 매개 변수가 정의되어 있지 않습니다.
SPRKSCL1164¶
참고
이 문제 코드는 사용 중단 되었습니다
메시지: 이 매개 변수는 org.apache.spark.sql.DataFrameReader.option에 대해 정의되지 않았습니다.
카테고리: 경고
설명¶
This issue appears when the SMA detects that giving parameter of org.apache.spark.sql.DataFrameReader.option is not defined.
시나리오¶
입력
Below is an example of undefined parameter for org.apache.spark.sql.DataFrameReader.option function.
출력
The SMA adds the EWI SPRKSCL1164 to the output code to let you know that giving parameter to the org.apache.spark.sql.DataFrameReader.option function is not defined.
권장 수정
Check the Snowpark documentation for reader format option here, in order to identify the defined options.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1135¶
경고
This issue code is deprecated since Spark Conversion Core 4.3.2
메시지: org.apache.sql.functions.mean에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.mean function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.mean function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1135 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent mean function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1115¶
경고
This issue code has been deprecated since Spark Conversion Core Version 4.6.0
메시지: org.apache.sql.functions.round에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.round function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.round function that generates this EWI.
출력
The SMA adds the EWI SPRKSCL1115 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent round function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a column object and a scale, you can convert the scale into a column object using the com.snowflake.snowpark.functions.lit function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1144¶
메시지: 기호 테이블을 로딩할 수 없습니다
카테고리: 구문 분석 오류
설명¶
이 문제는 SMA 실행 프로세스에 심각한 오류가 있을 때 표시됩니다. 기호 테이블을 로딩할 수 없으므로 SMA 가 평가 또는 변환 프로세스를 시작할 수 없습니다.
추가 권장 사항¶
This is unlikely to be an error in the source code itself, but rather is an error in how the SMA processes the source code. The best resolution would be to post an issue in the SMA.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1170¶
참고
이 문제 코드는 사용 중단 되었습니다
메시지: 플랫폼별 키에서 sparkConfig 멤버 키가 지원되지 않습니다.
카테고리: 변환 오류
설명¶
이전 버전을 사용 중인 경우 최신 버전으로 업그레이드하십시오.
추가 권장 사항¶
애플리케이션을 최신 버전으로 업그레이드하십시오.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1121¶
메시지: org.apache.sql.functions.atan에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.atan function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.atan function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1121 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent atan function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1131¶
메시지: org.apache.sql.functions.grouping에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.grouping function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.grouping function, first used with a column name as an argument and then with a column object.
출력
The SMA adds the EWI SPRKSCL1131 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent grouping function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1160¶
참고
This issue code has been deprecated since Spark Conversion Core 4.1.0
메시지: org.apache.sql.functions.sum에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.sum function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.sum function that generates this EWI. In this example, the sum function is used to calculate the sum of selected column.
출력
The SMA adds the EWI SPRKSCL1160 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent sum function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1154¶
메시지: org.apache.sql.functions.ceil에 해결 방법이 있습니다. 자세한 내용은 설명서를 참조하십시오
카테고리: 경고
설명¶
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.ceil function, which has a workaround.
시나리오¶
입력
Below is an example of the org.apache.spark.sql.functions.ceil function, first used with a column name as an argument, then with a column object and finally with a column object and a scale.
출력
The SMA adds the EWI SPRKSCL1154 to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
권장 수정
Snowpark has an equivalent ceil function that receives a column object as an argument. For that reason, the Spark overload that receives a column object as an argument is directly supported by Snowpark and does not require any changes.
For the overload that receives a string argument, you can convert the string into a column object using the com.snowflake.snowpark.functions.col function as a workaround.
For the overload that receives a column object and a scale, you can use the callBuiltin function to invoke the Snowflake builtin CEIL function. To use it, you should pass the string “ceil” as the first argument, the column as the second argument and the scale as the third argument.
추가 권장 사항¶
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
SPRKSCL1105¶
이 문제 코드는 사용 중단 되었습니다
메시지: 작성기 형식 값이 지원되지 않습니다.
카테고리: 변환 오류
설명¶
This issue appears when the org.apache.spark.sql.DataFrameWriter.format has an argument that is not supported by Snowpark.
시나리오¶
There are some scenarios depending on the type of format you are trying to save. It can be a supported, or non-supported format.
시나리오 1¶
입력
이 도구는 저장하려는 형식의 유형을 분석하며, 지원되는 형식은 다음과 같습니다.
csvjsonorcparquettext
출력
The tool transforms the format method into a csv method call when save function has one parameter.
권장 수정
이 경우 도구에 EWI 가 표시되지 않으므로 수정할 필요가 없습니다.
시나리오 2¶
입력
The below example shows how the tool transforms the format method when passing a net.snowflake.spark.snowflake value.
출력
The tool shows the EWI SPRKSCL1105 indicating that the value net.snowflake.spark.snowflake is not supported.
권장 수정
For the not supported scenarios there is no specific fix since it depends on the files that are trying to be read.
시나리오 3¶
입력
The below example shows how the tool transforms the format method when passing a csv, but using a variable instead.
출력
Since the tool can not determine the value of the variable in runtime, shows the EWI SPRKSCL1163 indicating that the value is not supported.
권장 수정
As a workaround, you can check the value of the variable and add it as a string to the format call.
추가 권장 사항¶
The Snowpark location only accepts cloud locations using a snowflake stage.
The documentation of methods supported by Snowpark can be found in the documentation
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.