Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-10 Thread via GitHub
srielau commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1559602846 ## sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala: ## @@ -645,6 +646,34 @@ class CollationSuite extends DatasourceV2SQLBase with

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-08 Thread via GitHub
mihailom-db commented on PR #45819: URL: https://github.com/apache/spark/pull/45819#issuecomment-2042659387 If the collation is not important to the function execution we can create a separate pattern for it where we will exclude parameters that do not need casting. For example, substring

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-08 Thread via GitHub
nikolamand-db commented on PR #45819: URL: https://github.com/apache/spark/pull/45819#issuecomment-2042559655 How do we want to handle cases like string [split](https://github.com/apache/spark/pull/45856/files#diff-8ce4728fc96a1a5f2a3a846470f03175ba00b61ff6bc51933883241e736d886aR548) (work

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-08 Thread via GitHub
mihailom-db commented on PR #45819: URL: https://github.com/apache/spark/pull/45819#issuecomment-2042432922 @dbatomic @stefankandic @uros-db @stevomitric @nikolamand-db Could you take a look at this PR? It introduces a new flag for collations and makes sure most of the functions that

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-08 Thread via GitHub
mihailom-db commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1555608196 ## sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala: ## @@ -645,6 +646,34 @@ class CollationSuite extends DatasourceV2SQLBase with

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-08 Thread via GitHub
mihailom-db commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r142892 ## sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala: ## @@ -645,6 +646,34 @@ class CollationSuite extends DatasourceV2SQLBase with

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on PR #45819: URL: https://github.com/apache/spark/pull/45819#issuecomment-206686 Let's follow https://github.com/databricks/scala-style-guide, and remove unrelated changes, e.g., adding newlines which makes cherry-pick/backporting/reverting difficult. -- This

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548778640 ## sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala: ## @@ -509,6 +497,209 @@ class CollationSuite extends DatasourceV2SQLBase with

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548778507 ## sql/core/src/test/scala/org/apache/spark/sql/CollationStringExpressionsSuite.scala: ## @@ -20,57 +20,60 @@ package org.apache.spark.sql import

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548778237 ## sql/core/src/test/scala/org/apache/spark/sql/CollationRegexpExpressionsSuite.scala: ## @@ -20,421 +20,406 @@ package org.apache.spark.sql import

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548778030 ## sql/core/src/test/scala/org/apache/spark/sql/CollationRegexpExpressionsSuite.scala: ## @@ -20,421 +20,406 @@ package org.apache.spark.sql import

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548778372 ## sql/core/src/test/scala/org/apache/spark/sql/CollationStringExpressionsSuite.scala: ## @@ -20,57 +20,60 @@ package org.apache.spark.sql import

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548777921 ## sql/core/src/test/scala/org/apache/spark/sql/CollationRegexpExpressionsSuite.scala: ## @@ -20,421 +20,406 @@ package org.apache.spark.sql import

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r154888 ## sql/core/src/test/scala/org/apache/spark/sql/CollationRegexpExpressionsSuite.scala: ## @@ -20,421 +20,406 @@ package org.apache.spark.sql import

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548777557 ## sql/core/src/test/scala/org/apache/spark/sql/CollationRegexpExpressionsSuite.scala: ## @@ -20,421 +20,406 @@ package org.apache.spark.sql import

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548775474 ## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CollationTypeCasts.scala: ## @@ -0,0 +1,159 @@ +/* + * Licensed to the Apache Software

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548776133 ## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala: ## @@ -733,7 +737,6 @@ abstract class TypeCoercionBase {

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548777342 ## sql/core/src/test/scala/org/apache/spark/sql/CollationRegexpExpressionsSuite.scala: ## @@ -20,421 +20,406 @@ package org.apache.spark.sql import

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548777257 ## sql/core/src/test/scala/org/apache/spark/sql/CollationRegexpExpressionsSuite.scala: ## @@ -20,421 +20,406 @@ package org.apache.spark.sql import

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548774040 ## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CollationTypeCasts.scala: ## @@ -0,0 +1,159 @@ +/* + * Licensed to the Apache Software

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548769446 ## sql/api/src/main/scala/org/apache/spark/sql/types/StringType.scala: ## @@ -76,8 +86,10 @@ class StringType private(val collationId: Int) extends AtomicType

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
HyukjinKwon commented on code in PR #45819: URL: https://github.com/apache/spark/pull/45819#discussion_r1548767671 ## sql/api/src/main/scala/org/apache/spark/sql/types/StringType.scala: ## @@ -27,7 +34,10 @@ import org.apache.spark.sql.catalyst.util.CollationFactory * @param

Re: [PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
mihailom-db commented on PR #45819: URL: https://github.com/apache/spark/pull/45819#issuecomment-2031925929 This PR merged in changes from https://github.com/apache/spark/pull/45383 in order to build features faster. -- This is an automated message from the Apache Git Service. To respond

[PR] [SPARK-47692][SQL] Addition of priority flag to StringType [spark]

2024-04-02 Thread via GitHub
mihailom-db opened a new pull request, #45819: URL: https://github.com/apache/spark/pull/45819 ### What changes were proposed in this pull request? Addition of priority flag to StringType. ### Why are the changes needed? In order to follow casting rules for collations, we