Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-44409][SQL] Handle char/varchar in Dataset.to to keep consiste…
…nt with others ### What changes were proposed in this pull request? This PR replaces user-specified char/varchar in dataset.to API to make it consistent with other dataset/dataframe APIs ### Why are the changes needed? Currently, `INVALID_COLUMN_OR_FIELD_DATA_TYPE` is thrown when converting char to char, varchar to varchar. ### Does this PR introduce _any_ user-facing change? yes, different error classes when LEGACY_CHAR_VARCHAR_AS_STRING off and using char/vachar in `dataset.to`. While LEGACY_CHAR_VARCHAR_AS_STRING on, `to` is able to handle char/varchar ### How was this patch tested? new tests Closes apache#41992 from yaooqinn/SPARK-44409. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Kent Yao <yao@apache.org>
- Loading branch information