Github user kiszk commented on a diff in the pull request:
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -236,6 +238,29 @@ class Dataset[T] private[sql](
    +  val EAST_ASIAN_LANGS = Seq("ja", "vi", "kr", "zh")
    +  private def unicodeWidth(str: String): Int = {
    +    val locale = Locale.getDefault()
    +    if (locale == null) {
    +      throw new NullPointerException("locale is null")
    +    }
    +    val ambiguousLen = if 
(EAST_ASIAN_LANGS.contains(locale.getLanguage())) 2 else 1
    --- End diff --
    I can create the separate helper for the default width. A challenge is how 
we can decide the helper can be applied when we have got a string.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to