Skip to content

Commit

Permalink
[SPARK-45971][CORE][SQL] Correct the package name of `SparkCollection…
Browse files Browse the repository at this point in the history
…Utils` to `org.apache.spark.util`

### What changes were proposed in this pull request?
This pr correct the package name of `SparkCollectionUtils` from `org.apache.spark.sql.catalyst.util`  to `org.apache.spark.util`.

### Why are the changes needed?
`SparkCollectionUtils` is in `common-utils` module, not in `catalyst` module, so it should not use the package name related
 to `catalyst` module.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass GitHub Actions

### Was this patch authored or co-authored using generative AI tooling?
No

Closes apache#43864 from LuciferYang/SPARK-45971.

Lead-authored-by: yangjie01 <yangjie01@baidu.com>
Co-authored-by: YangJie <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
  • Loading branch information
LuciferYang authored and dongjoon-hyun committed Nov 17, 2023
1 parent a15d399 commit 8263c7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.spark.sql.catalyst.util
package org.apache.spark.util

import scala.collection.immutable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import scala.jdk.CollectionConverters._

import com.google.common.collect.{Iterators => GuavaIterators, Ordering => GuavaOrdering}

import org.apache.spark.sql.catalyst.util.SparkCollectionUtils
import org.apache.spark.util.SparkCollectionUtils

/**
* Utility functions for collections.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ import org.apache.spark.annotation.Stable
import org.apache.spark.sql.catalyst.analysis.SqlApiAnalysis
import org.apache.spark.sql.catalyst.parser.{DataTypeParser, LegacyTypeStringParser}
import org.apache.spark.sql.catalyst.trees.Origin
import org.apache.spark.sql.catalyst.util.{SparkCollectionUtils, SparkStringUtils, StringConcat}
import org.apache.spark.sql.catalyst.util.{SparkStringUtils, StringConcat}
import org.apache.spark.sql.errors.DataTypeErrors
import org.apache.spark.sql.internal.SqlApiConf
import org.apache.spark.util.SparkCollectionUtils

/**
* A [[StructType]] object can be constructed by
Expand Down

0 comments on commit 8263c7f

Please sign in to comment.