Please sign in to comment.
[SPARK-25371][SQL][BACKPORT-2.3] struct() should allow being called w…
…ith 0 args ## What changes were proposed in this pull request? SPARK-21281 introduced a check for the inputs of `CreateStructLike` to be non-empty. This means that `struct()`, which was previously considered valid, now throws an Exception. This behavior change was introduced in 2.3.0. The change may break users' application on upgrade and it causes `VectorAssembler` to fail when an empty `inputCols` is defined. The PR removes the added check making `struct()` valid again. ## How was this patch tested? added UT Closes #22391 from mgaido91/SPARK-25371_2.3. Authored-by: Marco Gaido <firstname.lastname@example.org> Signed-off-by: Wenchen Fan <email@example.com>
- Loading branch information...
Showing with 7 additions and 6 deletions.