SnowConvert AI - Scripts - Identified Objects¶
注釈
このドキュメントのこのページはTeradata専用です。
すべてのスクリプトファイル(BTEQ、 BTQ、 FL、 ML、 TPUMP、 TPT)で作成または変更されたすべてのデータベースオブジェクトの内訳。
変換率 - オブジェクト¶
注釈
オブジェクトは、重大度が「中」、「高」、「重大」の問題がなければ、正常に移行されたとみなされます。
Represents the percentage of identified objects by SnowConvert AI that were successfully migrated. This will help to determine the number of objects that were successfully migrated and the objects that need manual work in order to complete the migration of the objects to Snowflake. If N/A
is listed in the column, it means that the object type is not supported in Snowflake. A "-
" could also be listed in this column, this means that the set of files migrated by SnowConvert AI did not contain objects of the specific type that could be identified.
式¶
(successfully_converted_scripts_objects / total_scripts_objects) * 100
CSV 関連フィールド名¶
テーブル: ScriptTableObjectConversionRate
ビュー: ScriptViewObjectConversionRate
結合インデックス: ScriptJoinIndexObjectConversionRate
マクロ: ScriptMacroObjectConversionRate
プロシージャ: ScriptProcedureObjectConversionRate
関数: ScriptFunctionObjectConversionRate
トリガー: ScriptTriggerObjectConversionRate
インデックス: N/A
サンプル¶
CREATE SET TABLE Tables_Database.Employee
(Associate_Id INTEGER)
UNIQUE PRIMARY INDEX (Associate_Id);
CRATE SET TABLE Tables_Database.Employee2
(Associate_Id INTEGER)
UNIQUE PRIMARY INDEX (Associate_Id);
#*** Generated code is based on the SnowConvert AI Python Helpers version 2.0.6 ***
import os
import sys
import snowconvert.helpers
from snowconvert.helpers import Export
from snowconvert.helpers import exec
from snowconvert.helpers import BeginLoading
con = None
def main():
snowconvert.helpers.configure_log()
con = snowconvert.helpers.log_on()
exec("""
--** SSC-FDM-TD0024 - SET TABLE FUNCTIONALITY NOT SUPPORTED. TABLE MIGHT HAVE DUPLICATE ROWS **
CREATE OR REPLACE TABLE Tables_Database.Employee (
Associate_Id INTEGER,
UNIQUE (Associate_Id)
)
""")
#** SSC-EWI-0001 - UNRECOGNIZED TOKEN ON LINE '5' COLUMN '1' OF THE SOURCE CODE STARTING AT 'CRATE'. EXPECTED 'STATEMENT' GRAMMAR. LAST MATCHING TOKEN WAS 'CRATE' ON LINE '5' COLUMN '1'. CODE '81'. **
#
#--CRATE SET TABLE Tables_Database.Employee2
#-- (Associate_Id INTEGER)
#--UNIQUE PRIMARY INDEX (Associate_Id)
snowconvert.helpers.quit_application()
if __name__ == "__main__":
main()
予想されるオブジェクト変換率: 50%
説明: 前のサンプルコードでは、2つの識別テーブルのうち1つだけがSnowflakeへの移行に成功したため、オブジェクト変換率は50%となります。
変換率 - コード行数(LOC)¶
ファイル拡張子ごとのコード行の変換率を示します。
式¶
(script_success_lines / script_total_lines) * 100
関連 CSV フィールド名¶
テーブル: ScriptTableLoCConversionRate
ビュー: ScriptViewLocConversionRate
結合インデックス: ScriptJoinIndexLoCConversionRate
マクロ: ScriptMacroLoCConversionRate
プロシージャ: ScriptProcedureLoCConversionRate
関数: ScriptFunctionLoCConversionRate
トリガー: ScriptTriggerLoCConversionRate
インデックス: N/A
サンプル¶
CREATE SET TABLE Tables_Database.Employee
(Associate_Id INTEGER)
UNIQUE PRIMARY INDEX (Associate_Id);
CREATE SET TABLE Tables_Database.Employee2
(Associate_Id ANYTYPE!)
UNIQUE PRIMARY INDEX (Associate_Id);
#*** Generated code is based on the SnowConvert AI Python Helpers version 2.0.6 ***
import os
import sys
import snowconvert.helpers
from snowconvert.helpers import Export
from snowconvert.helpers import exec
from snowconvert.helpers import BeginLoading
con = None
def main():
snowconvert.helpers.configure_log()
con = snowconvert.helpers.log_on()
exec("""
--** SSC-FDM-TD0024 - SET TABLE FUNCTIONALITY NOT SUPPORTED. TABLE MIGHT HAVE DUPLICATE ROWS **
CREATE OR REPLACE TABLE Tables_Database.Employee (
Associate_Id INTEGER,
UNIQUE (Associate_Id)
)
""")
exec("""
--** SSC-FDM-TD0024 - SET TABLE FUNCTIONALITY NOT SUPPORTED. TABLE MIGHT HAVE DUPLICATE ROWS **
CREATE OR REPLACE TABLE Tables_Database.Employee2 (
-- ** SSC-EWI-0001 - UNRECOGNIZED TOKEN ON LINE '6' COLUMN '5' OF THE SOURCE CODE STARTING AT 'Associate_Id'. EXPECTED 'Column Definition' GRAMMAR. LAST MATCHING TOKEN WAS 'ANYTYPE' ON LINE '6' COLUMN '22'. CODE '15'. **
-- Associate_Id ANYTYPE!,
UNIQUE (Associate_Id)
)
""")
snowconvert.helpers.quit_application()
if __name__ == "__main__":
main()
予想される LOC 変換率: 83.33 %
説明: 前のサンプルコードでは、入力コードの5行目 (Associate_Id ANYTYPE!)
が移行できず、合計6行のコードのうち5行のみが正常に移行されたため、 LOC 変換率は83.33%になります。
注釈
このトピックに関する詳細情報については、ドキュメントの 変換率モード セクションをご参照ください。
オブジェクト合計数¶
Represents the total amount of objects identified by SnowConvert AI during the parsing phase.
CSV 関連フィールド名¶
テーブル: ScriptTableTotalOccurrences
ビュー: ScriptViewTotalOccurrences
結合インデックス: ScriptJoinIndexTotalOccurrences
マクロ: ScriptMacroTotalOccurrences
プロシージャ: ScriptProcedureTotalOccurrences
関数: ScriptFunctionTotalOccurrences
トリガー: ScriptTriggerTotalOccurrences
インデックス: ScriptIndexTotalOccurrences
サンプル¶
-- Successfully parsed table.
CREATE SET TABLE Tables_Database.Employee
(Associate_Id INTEGER)
UNIQUE PRIMARY INDEX (Associate_Id);
-- Table with a parsing error that could not be identified.
CRATE SET TABLE Tables_Database.Employee2
(Associate_Id INTEGER)
UNIQUE PRIMARY INDEX (Associate_Id);
#*** Generated code is based on the SnowConvert AI Python Helpers version 2.0.6 ***
import os
import sys
import snowconvert.helpers
from snowconvert.helpers import Export
from snowconvert.helpers import exec
from snowconvert.helpers import BeginLoading
con = None
def main():
snowconvert.helpers.configure_log()
con = snowconvert.helpers.log_on()
# Successfully parsed table.
exec("""
--** SSC-FDM-TD0024 - SET TABLE FUNCTIONALITY NOT SUPPORTED. TABLE MIGHT HAVE DUPLICATE ROWS **
CREATE OR REPLACE TABLE Tables_Database.Employee (
Associate_Id INTEGER,
UNIQUE (Associate_Id)
)
""")
#** SSC-EWI-0001 - UNRECOGNIZED TOKEN ON LINE '7' COLUMN '1' OF THE SOURCE CODE STARTING AT 'CRATE'. EXPECTED 'STATEMENT' GRAMMAR. LAST MATCHING TOKEN WAS 'CRATE' ON LINE '7' COLUMN '1'. CODE '81'. **
#
#---- Table with a parsing error that could not be identified.
#--CRATE SET TABLE Tables_Database.Employee2
#-- (Associate_Id INTEGER)
#--UNIQUE PRIMARY INDEX (Associate_Id)
snowconvert.helpers.quit_application()
if __name__ == "__main__":
main()
予想されるオブジェクト合計数: 1
Explanation: One table was completely parsed by SnowConvert AI during the parsing phase but the other table has a parsing error that causes SnowConvert AI to not identify it as a table object.
コード行数¶
識別されたトップレベルオブジェクトに使用されたコード行の合計数を表します。この列では、コメントだけでなく、トップレベルオブジェクトのコード行も使用されることを考慮することが重要です。一方、空の行はこの列にはカウントされません。
CSV 関連フィールド名¶
テーブル: ScriptTableTotalLinesOfCode
ビュー: ScriptViewTotalLinesOfCode
結合インデックス: ScriptJoinIndexTotalLinesOfCode
マクロ: ScriptMacroTotalLinesOfCode
プロシージャ: ScriptProcedureTotalLinesOfCode
関数: ScriptFunctionTotalLinesOfCode
トリガー: ScriptTriggerTotalLinesOfCode
インデックス: ScriptIndexTotalLinesOfCode
サンプル¶
-- Hello World
CREATE SET TABLE Tables_Database.Employee
(Associate_Id INTEGER)
UNIQUE PRIMARY INDEX (Associate_Id);
CREATE SET TABLE Tables_Database.Employee2
(-- hello world
Associate_Id ANYTYPE!)
UNIQUE PRIMARY INDEX (Associate_Id);
#*** Generated code is based on the SnowConvert AI Python Helpers version 2.0.6 ***
import os
import sys
import snowconvert.helpers
from snowconvert.helpers import Export
from snowconvert.helpers import exec
from snowconvert.helpers import BeginLoading
con = None
def main():
snowconvert.helpers.configure_log()
con = snowconvert.helpers.log_on()
# Hello World
exec("""
--** SSC-FDM-TD0024 - SET TABLE FUNCTIONALITY NOT SUPPORTED. TABLE MIGHT HAVE DUPLICATE ROWS **
CREATE OR REPLACE TABLE Tables_Database.Employee (
Associate_Id INTEGER,
UNIQUE (Associate_Id)
)
""")
# hello world
exec("""
--** SSC-FDM-TD0024 - SET TABLE FUNCTIONALITY NOT SUPPORTED. TABLE MIGHT HAVE DUPLICATE ROWS **
CREATE OR REPLACE TABLE Tables_Database.Employee2 (
-- ** SSC-EWI-0001 - UNRECOGNIZED TOKEN ON LINE '8' COLUMN '4' OF THE SOURCE CODE STARTING AT 'Associate_Id'. EXPECTED 'Column Definition' GRAMMAR. LAST MATCHING TOKEN WAS 'ANYTYPE' ON LINE '8' COLUMN '21'. CODE '15'. **
-- Associate_Id ANYTYPE!,
UNIQUE (Associate_Id)
)
""")
snowconvert.helpers.quit_application()
if __name__ == "__main__":
main()
予想されるコード行数: 8
説明: このケースでは、 CREATE TABLE
ステートメントに使用されるコードに由来する6行と、トップレベルオブジェクトの内部にあるコメントに由来する2行があります。
解析エラー数¶
識別されたオブジェクトの内部にある解析エラーの数を表します。
CSV 関連フィールド名¶
テーブル: ScriptTableTotalParsingErrors
ビュー: ScriptViewTotalParsingErrors
結合インデックス: ScriptJoinIndexTotalParsingErrors
マクロ: ScriptMacroTotalLinesOfCode
プロシージャ: ScriptProcedureTotalParsingErrors
関数: ScriptFunctionTotalParsingErrors
トリガー: ScriptTriggerTotalParsingErrors
インデックス: ScriptIndexTotalParsingErrors
サンプル¶
-- Successfully parsed table.
CREATE SET TABLE Tables_Database.Employee
(Associate_Id INTEGER)
UNIQUE PRIMARY INDEX (Associate_Id);
-- Table with a parsing error that could not be identified.
CRATE SET TABLE Tables_Database.Employee2
(Associate_Id INTEGER)
UNIQUE PRIMARY INDEX (Associate_Id);
#*** Generated code is based on the SnowConvert AI Python Helpers version 2.0.6 ***
import os
import sys
import snowconvert.helpers
from snowconvert.helpers import Export
from snowconvert.helpers import exec
from snowconvert.helpers import BeginLoading
con = None
def main():
snowconvert.helpers.configure_log()
con = snowconvert.helpers.log_on()
# Successfully parsed table.
exec("""
--** SSC-FDM-TD0024 - SET TABLE FUNCTIONALITY NOT SUPPORTED. TABLE MIGHT HAVE DUPLICATE ROWS **
CREATE OR REPLACE TABLE Tables_Database.Employee (
Associate_Id INTEGER,
UNIQUE (Associate_Id)
)
""")
#** SSC-EWI-0001 - UNRECOGNIZED TOKEN ON LINE '7' COLUMN '1' OF THE SOURCE CODE STARTING AT 'CRATE'. EXPECTED 'STATEMENT' GRAMMAR. LAST MATCHING TOKEN WAS 'CRATE' ON LINE '7' COLUMN '1'. CODE '81'. **
#
#---- Table with a parsing error that could not be identified.
#--CRATE SET TABLE Tables_Database.Employee2
#-- (Associate_Id INTEGER)
#--UNIQUE PRIMARY INDEX (Associate_Id)
snowconvert.helpers.quit_application()
if __name__ == "__main__":
main()
予想される解析エラー数: 1
Explanation: Only one parsing error will be reported in the Parsing Errors column because SnowConvert AI was able to only identify the first table. Since the second table was not identified, those parsing errors will not be counted in the Parsing Errors column.