Closed WaqasAliAbbasi closed 2 years ago
I have managed to implement the solution locally, just need to add some tests.
Hi @WaqasAliAbbasi, thanks for this! If I recall correctly, I did not think about this case. I'll check out your PR!
Are you using Geni as a dependency? Will you need a new release for these changes?
Hi @WaqasAliAbbasi, thanks for this! If I recall correctly, I did not think about this case. I'll check out your PR!
Are you using Geni as a dependency? Will you need a new release for these changes?
Thanks for looking into the PR, will update it soon.
Yes we use geni heavily in our team (its such a neat library, thanks for your work 😃) Will appreciate it if you push a release once this change is in.
Thank you very much for the kind words. I'm really happy to hear that!
Please let me know once you're happy with the PR, I'll merge it and create a release!
Info
Problem / Steps to reproduce
Cannot use structs or list of structs in
g/->dataset
, example:leads to
Running
g/print-schema
right beforeg/show
above shows incorrect schema:Expected Result
g/show
should output:g/print-schema
should output:Proposed Solution
map?
ininfer-spark-type
at https://github.com/zero-one-group/geni/blob/123aec55351adad893907ea4284e5b2e0ce43f45/src/clojure/zero_one/geni/core/dataset_creation.clj#L130table
, transform to array of values https://github.com/zero-one-group/geni/blob/123aec55351adad893907ea4284e5b2e0ce43f45/src/clojure/zero_one/geni/core/dataset_creation.clj#L165