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)
- 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
- Feat: Implement database subset. Stage1
- feat: Database subset. Stage2 HOT 1
- Delete old dumps except for the last X HOT 1
- Data Generator Request: RandomCity HOT 4
- feat: Subset stage 3: Circular dependencies subset
- backlog 2024 Q3
- feat: Transformers collection and python library
- Container image HOT 5
- feat: PostgreSQL 17 support
- Unable to use `on-conflict-do-nothing` flag due to other missing flags that cannot be supplied HOT 6
- feat: Subset stage 4: Multi cycles in the same SCC
- feat: Subset stage 5: Virtual foreign keys
- fix: Make a new transformer verbose
- feat: Add pgzip support HOT 2
- feat: Implement siphash as hashing function
- backlog 2024 Q4
- feat: Implement transformation conveyor
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.