Comments (3)
The field type
only accepts logical types. You can set the precision and scale separately.
Try this:
fields:
yyy
type: decimal
precision: 16
scale: 4
also, you can define the physical type as a config option:
fields:
yyy
type: decimal
precision: 16
scale: 4
config:
databricksType: decimal(16,4)
from datacontract-cli.
Thanks for the update. Doesn't it need the physical type to run tests?
from datacontract-cli.
The CLI maps to the physical types, based on the server type.
You can use the config to overwrite these mapped types (e.g. if you use VARCHAR, instead of STRING)
from datacontract-cli.
Related Issues (20)
- JsonSchema importer doesn't support array types HOT 2
- Trino tests are flaky
- Dbt model in data contract fails HOT 2
- Case issue on postgres table names HOT 2
- Avro import does not support 'enum' type HOT 5
- Pyspark dependency is required despite marked as optional HOT 4
- Checking for Databricks ARRAY<STRING> HOT 7
- Application install installs every available package version for moto HOT 1
- Resolve to fields within a definition HOT 1
- Export to Unity Catalog
- Development Env. is broken HOT 3
- Enable tests in Google Cloud Buckets HOT 1
- Typo in a documentation HOT 1
- Import: No support of AWS Athena (Trino) DDLs HOT 2
- Glue import with database and glue-table parameters returns all tables in a Glue database HOT 2
- Glue: `map` data type is not supported HOT 5
- Delta table support for server type local is not implemented yet, it only checks for azure and then directly goes to AWS s3 HOT 1
- Breaking method is not working with bigint columns HOT 5
- import dbt source into datacontrac HOT 2
- import sql (postgres ddl) into datacontract.yml: numeric --> variant HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datacontract-cli.