Comments (6)
Some more info : it looks like symbols must have more chars than max_length. It doesn't panic if I use
- schema: public
name: surgery_patient
transformers:
- name: RandomString
params:
column: permanent_identification_number
symbols: 012345678901234567890123456789
min_length: 20
max_length: 20
keep_null: false
But the generated string is weird (eg, I get 5+99e8e+964311721988 or 26+15+306640331+27+1 even if neither + nor e are in the configured symbols)
from greenmask.
Hi!
Thank you for reporting the issue.
I will try to resolve your problem ASAP.
from greenmask.
The first problem with panic I was able to solve.
But the generated string is weird (eg, I get 5+99e8e+964311721988 or 26+15+306640331+27+1 even if neither + nor e are in the configured symbols)
The reason why it is working in this way is that YAML parser recognizes it as an integer value 1.2345678901234568e+28
. In this case, I can only recommend wrapping the value into quotes
- schema: public
name: surgery_patient
transformers:
- name: RandomString
params:
column: "permanent_identification_number"
symbols: "012345678901234567890123456789"
min_length: 20
max_length: 20
keep_null: false
This is a limitation for now because we use casting to any
and it determines the type by the literal
from greenmask.
I will add the information about it in docs
from greenmask.
The reason why it is working in this way is that YAML parser recognizes it as an integer value
1.2345678901234568e+28
. In this case, I can only recommend wrapping the value into quotes
Oh, of course, I should have though about this. Thanks, I can get my random ID to be generated now :-)
from greenmask.
Thank you for reporting that issue.
The fix connected with panic will be published in the next release (approximately this Friday or next week).
from greenmask.
Related Issues (20)
- Epic: Implement dynamic parameters for trasnformers
- Epic: Determninistic transformations
- Feat: RandomPerson transformer implementation HOT 1
- Epic: V0.2b release
- Feat: RandomIp transformer implementation
- Feat: Documentation deployment with multiversion support
- Greenmask V0.1.13 SIGSEGV HOT 6
- Bug: --data-only flag interfere with --schema-only
- doc: Review documentation for v0.2 release
- feat: Add type validation for dynamic parameters encoders
- feat: Database subset
- feat: unique transformations
- Feat: RandomMacAddress transformer implementation
- permission denied for large object during dump action HOT 10
- fix: Enrich dynamic parameter validation warning
- feat: Set min and max values not required for int values
- feat: Implement LargeObjects inclusive and exclusive list
- feat: Noise* transformers - allow empty min or max params
- Feature request: transformer "timestamp with time zone" HOT 3
- fix: validate --table option wrong shcema and table parsing
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 greenmask.