SnowConvert AI - Elements Report¶
什么是“元素”?¶
在此上下文中,“元素”一词用于指语法元素;即语法中的一个元素,在特定语言中具有名称、语法和目的。
通常,这些元素会被突出显示,并且在语言的文档中非常重要。
以下是一些 SQL 语言元素的示例:
任何 DDL,例如
CREATE TABLE和CREATE VIEWDML 的重要内容,例如
PARTITION BY和NOT NULL任何 DML,例如
INSERT和DELETE一些重要的表达式,例如
IN、NOT IN、BETWEEN和LIKE运算符,包括条件和算术运算符
查询的某些内部部分,例如
ORDER BY、WHEN、INNER JOIN和TOP。重要函数,例如
AVG和RANK
从本质上讲,任何值得跟踪以进行评估的内容都可以视为一个元素。
我在哪里可以找到它?¶
元素报告可以在名为 "reports" 的文件夹中找到,该文件夹位于转换的输出文件夹中。文件本身的名称以 "Elements" 开头,因此可以轻松找到。
文件的格式为 .CSV。
它包含什么信息?¶
元素报告以表格式显示,包含以下各列:
| Column | Description |
|---|---|
| SessionID | The session ID of the transformation. This is a unique identifier for the transformation session. |
| Category | The element's corresponding category. These can be DDL, DDL Content, DML, Functions & Expressions, Statement, Query, and so on. |
| Grammar Element | The name associated to the element, often the same as found in the official documentation for the language. |
| File Type | The type of the file that contains the element. For example: SQL. |
| Total Count | The total count of that particular element found during the transformation process. |
| Not Converted Count (Self) | The count of that particular element that presented issues severe enough for it to not properly transform. Usually unsupported structures or elements that had a particular transformation error. Keep in mind that "Self" means that some of the inner contents of the element may or may not be not converted, but if the element itself did not present errors, it will not be counted towards this column. |
| Language | The programming language or SQL dialect of the source code unit. |
摘要¶
每个元素都使用特定的标准进行汇总,该标准可能包括多列以形成“复合键”。基本分组是使用“类别”、“语法元素”和“文件类型”列进行的。
遵循此惯例,可以根据包含 SELECT 元素的文件类型对同一个元素进行不同的汇总,或者如果两个具有相同语法元素(或名称)的元素的类别不同,则仍可以单独汇总。