Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK] Improve array handling in SQL
Refactor logic to use absolute field names as the relative name are prone to overwrites Improve field filtering to allow partial or strict matching relates #482 #484
- Loading branch information
Showing
12 changed files
with
240 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
spark/sql-13/src/itest/scala/org/elasticsearch/spark/sql/SchemaUtilsTestable.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.elasticsearch.spark.sql | ||
|
||
import org.elasticsearch.hadoop.cfg.Settings | ||
|
||
object SchemaUtilsTestable { | ||
|
||
def discoverMapping(cfg: Settings) = SchemaUtils.discoverMapping(cfg) | ||
|
||
def rowInfo(cfg: Settings) = { | ||
val schema = SchemaUtils.discoverMapping(cfg) | ||
SchemaUtils.setRowInfo(cfg, schema.struct) | ||
SchemaUtils.getRowInfo(cfg) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.