public final class FingerprintV1 extends Object
This algorithm is promised stable across engine versions; any change requires a
new name (FINGERPRINT-V2) and a contract major bump. Byte-identity against
gudu-sqlflow/tools/lineage-contract-fixtures/hash_identity_fixtures.json
is asserted by Lineage2ContractConformanceTest.
Algorithm (frozen):
-- to end-of-line, /* */ with T-SQL
nesting; comment markers inside '...' string literals and
[...] / "..." quoted identifiers are not comment starts;Internal API: not part of the public gsqlparser surface.
| Modifier and Type | Method and Description |
|---|---|
static String |
fingerprint(String statementText)
FINGERPRINT-V1 of the statement text: sha256 hex of
normalize(String). |
static String |
normalize(String text)
The normalization family shared with transformation normalizedExpression
(contract §4.2): comment strip + lowercase outside quotes + whitespace collapse.
|
public static String fingerprint(String statementText)
normalize(String).