log-synth(master ✗) java -cp target/log-synth-0.1-SNAPSHOT-jar-with-dependencies.jar com.mapr.synth.Synth -schema users-schema-test.json -format CSV
Exception in thread "main" java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at com.mapr.synth.Synth.main(Synth.java:114)
Caused by: java.lang.NullPointerException
at com.mapr.synth.samplers.NameSampler.sample(NameSampler.java:80)
at com.mapr.synth.samplers.NameSampler.sample(NameSampler.java:24)
at com.mapr.synth.samplers.SchemaSampler.sample(SchemaSampler.java:69)
at com.mapr.synth.Synth$ReportingWorker.generateFile(Synth.java:207)
at com.mapr.synth.Synth$ReportingWorker.call(Synth.java:171)
at com.mapr.synth.Synth$ReportingWorker.call(Synth.java:125)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
This should throw an error asking that the type be provided, or better yet, a default type should be provided for you, say FIRST_LAST?
When using the name field in this schema (missing the
type
field in the name class):log-synth throws a
NullPointerException
:This should throw an error asking that the type be provided, or better yet, a default type should be provided for you, say
FIRST_LAST
?