Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom ArrayType Fields #309

Open
michaelknopf opened this issue Jan 20, 2020 · 0 comments
Open

Custom ArrayType Fields #309

michaelknopf opened this issue Jan 20, 2020 · 0 comments

Comments

@michaelknopf
Copy link

val elementGenerator = getGenerator(arr.elementType, nullable = arr.containsNull)

I was hoping that arbitraryDataFrameWithCustomFields would support custom generators for the elements of an ArrayType column, but it does not seem to.

Is there a problem with changing this line to this:

val elementGenerator = getGenerator(arr.elementType, generators = generators, nullable = arr.containsNull)

I have verified this works in the case of an array of structs, but have not tested other cases yet. I would be happy to open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant