Skip to content

Conversation

@wangyum
Copy link
Member

@wangyum wangyum commented Aug 29, 2018

What changes were proposed in this pull request?

Since #21696. Spark uses Parquet schema instead of Hive metastore schema to do pushdown.
That change can avoid wrong records returned when Hive metastore schema and parquet schema are in different letter cases. This pr add a test case for it.

More details:
https://issues.apache.org/jira/browse/SPARK-25206

How was this patch tested?

unit tests

@SparkQA
Copy link

SparkQA commented Aug 29, 2018

Test build #95415 has finished for PR 22267 at commit f5559f4.

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

@wangyum
Copy link
Member Author

wangyum commented Aug 29, 2018

cc @cloud-fan

}
}

test("SPARK-25206: wrong records are returned when Hive metastore schema and parquet schema " +
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a end-to-end test and should not be put here. How about HiveParquetSuite

@SparkQA
Copy link

SparkQA commented Aug 30, 2018

Test build #95453 has finished for PR 22267 at commit cdbf81a.

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

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@asfgit asfgit closed this in e9fce2a Aug 30, 2018
fjh100456 pushed a commit to fjh100456/spark that referenced this pull request Aug 31, 2018
…t schema are in different letter cases

## What changes were proposed in this pull request?

Since apache#21696. Spark uses Parquet schema instead of Hive metastore schema to do pushdown.
That change can avoid wrong records returned when Hive metastore schema and parquet schema are in different letter cases. This pr add a test case for it.

More details:
https://issues.apache.org/jira/browse/SPARK-25206

## How was this patch tested?

unit tests

Closes apache#22267 from wangyum/SPARK-24716-TESTS.

Authored-by: Yuming Wang <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
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