Skip to content

Conversation

@hvanhovell
Copy link
Contributor

@hvanhovell hvanhovell commented Feb 22, 2017

What changes were proposed in this pull request?

This PR is a small follow-up on #16804. This PR also adds support for nested char/varchar fields in orc.

How was this patch tested?

I have added a regression test to the OrcSourceSuite.

@hvanhovell
Copy link
Contributor Author

cc @cloud-fan

@SparkQA
Copy link

SparkQA commented Feb 23, 2017

Test build #73301 has finished for PR 17030 at commit e832ce6.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • sealed abstract class HiveStringType extends AtomicType
  • case class CharType(length: Int) extends HiveStringType
  • case class VarcharType(length: Int) extends HiveStringType

case _ =>
}
val rawDataType = typedVisit[DataType](ctx.dataType)
builder.putString(HIVE_TYPE_STRING, rawDataType.catalogString)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the tests failed because we always put the hive type string. We should only do it when there is char/varchar type

@SparkQA
Copy link

SparkQA commented Feb 23, 2017

Test build #73346 has finished for PR 17030 at commit fa2e0cc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@asfgit asfgit closed this in 78eae7e Feb 23, 2017
@cloud-fan
Copy link
Contributor

cloud-fan commented Feb 23, 2017

thanks, merging to master!

hvanhovell added a commit to hvanhovell/spark that referenced this pull request Feb 23, 2017
## What changes were proposed in this pull request?
This PR is a small follow-up on apache#16804. This PR also adds support for nested char/varchar fields in orc.

## How was this patch tested?
I have added a regression test to the OrcSourceSuite.

Author: Herman van Hovell <[email protected]>

Closes apache#17030 from hvanhovell/SPARK-19459-follow-up.

# Conflicts:
#	sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
#	sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/OrcSourceSuite.scala
hvanhovell added a commit to hvanhovell/spark that referenced this pull request Feb 23, 2017
## What changes were proposed in this pull request?
This PR is a small follow-up on apache#16804. This PR also adds support for nested char/varchar fields in orc.

## How was this patch tested?
I have added a regression test to the OrcSourceSuite.

Author: Herman van Hovell <[email protected]>

Closes apache#17030 from hvanhovell/SPARK-19459-follow-up.

# Conflicts:
#	sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
#	sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/OrcSourceSuite.scala
Yunni pushed a commit to Yunni/spark that referenced this pull request Feb 27, 2017
## What changes were proposed in this pull request?
This PR is a small follow-up on apache#16804. This PR also adds support for nested char/varchar fields in orc.

## How was this patch tested?
I have added a regression test to the OrcSourceSuite.

Author: Herman van Hovell <[email protected]>

Closes apache#17030 from hvanhovell/SPARK-19459-follow-up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants