In datacontract-cli version 1.0.10, I imported a datacontract from a BigQuery table containing INTEGER and FLOAT fields. The datacontract will show physicalType: INTEGER and physicalType: FLOAT respectively.
When running datacontract test, the test fails with the following errors:
🔴 data contract is invalid, found the following errors:
1) col_int64 Check that field col_int64 has physical type INTEGER: expected physical type 'INTEGER' but the column is 'INT64'
2) col_float64 Check that field col_float64 has physical type FLOAT: expected physical type 'FLOAT' but the column is 'FLOAT64'
The solution is to use physicalType: INT64 and physicalType: FLOAT64 respectively.
In
datacontract-cliversion1.0.10, I imported a datacontract from a BigQuery table containingINTEGERandFLOATfields. The datacontract will showphysicalType: INTEGERandphysicalType: FLOATrespectively.When running
datacontract test, the test fails with the following errors:The solution is to use
physicalType: INT64andphysicalType: FLOAT64respectively.