Skip to content

Commit

Permalink
fix: fixing teradata doc (#513)
Browse files Browse the repository at this point in the history
* fixing teradata doc

* and the installation

* fixing link and adding additional note

* fixing link and adding additional note
  • Loading branch information
renzokuken committed Jun 27, 2022
1 parent 53ac41a commit 6a10356
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ The [Examples](https://github.com/GoogleCloudPlatform/professional-services-data
#### Row Validations

(Note: Row hash validation is currently only supported for BigQuery, Teradata, and Imapala/Hive. Struct and array
data types are not currently supported.)
data types are not currently supported. In addition, please note that SHA256 is not a supported function on teradata
systems. If you wish to perform this comparison on teradata you will need to
[deploy a UDF to perform the conversion](https://github.com/akuroda/teradata-udf-sha2/blob/master/src/sha256.c).)

Below is the command syntax for row validations. In order to run row level
validations you need to pass a `--primary-key` flag which defines what field(s)
Expand Down Expand Up @@ -466,6 +468,9 @@ and run a SHA256() hash and compare the source and target results. Since each ro
be returned in the result set, it is recommended to utilize the `--use-random-row` feature
to validate a subset of the table.

Please note that SHA256 is not a supported function on teradata systems. If you wish to perform
this comparison on teradata you will need to [deploy a UDF to perform the conversion](https://github.com/akuroda/teradata-udf-sha2/blob/master/src/sha256.c).

Comparison field validations (`--comp-fields column`) involve an value comparison of the
column values. These values will be compared via a JOIN on their corresponding primary
key and will be evaluated for an exact match.
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ If you require Teradata and have a license, install the `teradatasql` package.
python -m pip install teradatasql
```

If you plan to perform row level hashing on teradata, you will need to install a UDF that implements sha256 on your Teradata instance. An example can be found [here](.https://downloads.teradata.com/forum/extensibility/sha-2-udfs-for-teradata).
If you plan to perform row level hashing on teradata, you will need to install a UDF that implements sha256 on your Teradata instance. An example can be found [here](https://downloads.teradata.com/forum/extensibility/sha-2-udfs-for-teradata).

After installing the Data Validation package you will
have access to the `data-validation -h` or `python -m data_validation -h`
Expand Down

0 comments on commit 6a10356

Please sign in to comment.