Skip to content

Commit ab76cbd

Browse files
committed
Move code to Catalyst package.
1 parent d2b4a4a commit ab76cbd

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

sql/core/src/test/scala/org/apache/spark/sql/test/RandomDataGenerator.scala renamed to sql/catalyst/src/test/scala/org/apache/spark/sql/RandomDataGenerator.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.spark.sql.test
18+
package org.apache.spark.sql
1919

20-
import org.apache.spark.sql.Row
20+
import org.apache.spark.sql.types._
2121

2222
import scala.util.Random
2323

24-
import org.apache.spark.sql.types._
25-
2624
/**
2725
* Random data generators for Spark SQL DataTypes. These generators do not generate uniformly random
2826
* values; instead, they're biased to return "interesting" values (such as maximum / minimum values)

sql/core/src/test/scala/org/apache/spark/sql/test/RandomDataGeneratorSuite.scala renamed to sql/catalyst/src/test/scala/org/apache/spark/sql/RandomDataGeneratorSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.spark.sql.test
18+
package org.apache.spark.sql
1919

2020
import org.apache.spark.SparkFunSuite
2121
import org.apache.spark.sql.catalyst.CatalystTypeConverters
22-
import org.apache.spark.sql.types.{StructField, StructType, MapType, DataType}
22+
import org.apache.spark.sql.types._
2323

2424
/**
2525
* Tests of [[RandomDataGenerator]].

sql/core/src/test/scala/org/apache/spark/sql/test/DataTypeTestUtils.scala renamed to sql/catalyst/src/test/scala/org/apache/spark/sql/types/DataTypeTestUtils.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.spark.sql.test
19-
20-
import org.apache.spark.sql.types._
18+
package org.apache.spark.sql.types
2119

2220
/**
2321
* Utility functions for working with DataTypes in tests.

0 commit comments

Comments
 (0)