test: show a mismatch for initcap between Spark and DataFusion#1051
test: show a mismatch for initcap between Spark and DataFusion#1051Blizzara wants to merge 1 commit intoapache:mainfrom
Conversation
``` == Results == !== Correct Answer - 7 == == Spark Answer - 7 == struct<initcap(name):string> struct<initcap(name):string> [James Smith] [James Smith] [James Smith] [James Smith] ![James Ähtäri] [James äHtäRi] [Michael Rose] [Michael Rose] [Rames Rose] [Rames Rose] ![Robert Rose-smith] [Robert Rose-Smith] [Robert Williams] [Robert Williams] ```
|
I tested this PR locally and the test fails. We will likely need to implement a custom version that matches Spark's logic. |
|
This issue has been outstanding for a while, we should perhaps disable initcap for now |
|
Depending on which 'style' guide you follow initcap behavior could or could not capitalize the second part of a hyphenated word (or name). |
|
Thanks @kazuyukitanimura ! FWIW, for our internal stuff, I did make a modified copy of DFs initcap, basically just replacing |
|
@Blizzara please feel free to reopen once the proper fix is ready |
This PR shows the problem by adding two cases to the test, one using a dash and one using non-ascii letters (from Finnish).
Closes #1052