Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tests for Hive complex types
  • Loading branch information
liancheng committed Jul 17, 2015
commit 43804700e82527afd3cfc731025ddef26c4dd380
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class ParquetHiveCompatibilitySuite extends ParquetCompatibilityTest {
| double_column DOUBLE,
|
| strings_column ARRAY<STRING>,
| int_to_string_column MAP<INT, STRING>
| int_to_string_column MAP<INT, STRING>,
| structs_column ARRAY<STRUCT<a: STRING, b: STRING>>,
| maps_column ARRAY<MAP<INT, STRING>>
|)
|STORED AS PARQUET
|LOCATION '${parquetStore.getCanonicalPath}'
Expand Down Expand Up @@ -86,7 +88,11 @@ class ParquetHiveCompatibilitySuite extends ParquetCompatibilityTest {
nullable(i.toFloat + 0.1f: java.lang.Float),
nullable(i.toDouble + 0.2d: java.lang.Double),
nullable(Seq.tabulate(3)(n => s"arr_${i + n}")),
nullable(Seq.tabulate(3)(n => (i + n: Integer) -> s"val_${i + n}").toMap))
nullable(Seq.tabulate(3)(n => (i + n: Integer) -> s"val_${i + n}").toMap),
nullable(Seq.tabulate(3)(n => Row(s"val_a_${i + n}", s"val_b_${i + n}"))),
nullable(Seq.tabulate(3) { n =>
Seq.tabulate(3)(m => (i + n + m: Integer) -> s"val_b_${i + n + m}").toMap
}))
}
}
}