Skip to content

Conversation

@liancheng
Copy link
Contributor

PR #7967 enables us to save data source relations to metastore in Hive compatible format when possible. But it fails to persist Parquet relations with decimal column(s) to Hive metastore of versions lower than 1.2.0. This is because ParquetHiveSerDe in Hive versions prior to 1.2.0 doesn't support decimal. This PR checks for this case and falls back to Spark SQL specific metastore table format.

@liancheng liancheng force-pushed the spark-9757/old-hive-parquet-decimal branch from 7a9c045 to 194d7db Compare August 12, 2015 16:45
@SparkQA
Copy link

SparkQA commented Aug 12, 2015

Test build #40641 has finished for PR 8130 at commit 194d7db.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we use our own hive client's notion of version instead of a regex here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I will update it.

@SparkQA
Copy link

SparkQA commented Aug 12, 2015

Test build #40650 has finished for PR 8130 at commit a5f39ba.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • * It is safe to add arguments modified by other methods in this class (such as

@SparkQA
Copy link

SparkQA commented Aug 12, 2015

Test build #1501 has finished for PR 8130 at commit 5ffe310.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Aug 12, 2015

Test build #40660 has finished for PR 8130 at commit 5ffe310.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@liancheng liancheng force-pushed the spark-9757/old-hive-parquet-decimal branch from d42a0ef to f4e4c2c Compare August 13, 2015 00:56
@SparkQA
Copy link

SparkQA commented Aug 13, 2015

Test build #1507 has finished for PR 8130 at commit d42a0ef.

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

@yhuai
Copy link
Contributor

yhuai commented Aug 13, 2015

Test build 1507 is not for the latest commit. I manually triggered 1525.

@SparkQA
Copy link

SparkQA commented Aug 13, 2015

Test build #1525 has finished for PR 8130 at commit f4e4c2c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class QRDecomposition[QType, RType](Q: QType, R: RType)

@liancheng
Copy link
Contributor Author

Verified under my local MySQL backed Hive 0.13.1 metastore and it works. Merging to master and branch-1.5.

(Please ignore this comment, meant to post it on #8158...)

@liancheng
Copy link
Contributor Author

@yhuai @marmbrus Thanks for the review and helping fixing it! I'm merging this to master and branch-1.5.

asfgit pushed a commit that referenced this pull request Aug 13, 2015
… column

PR #7967 enables us to save data source relations to metastore in Hive compatible format when possible. But it fails to persist Parquet relations with decimal column(s) to Hive metastore of versions lower than 1.2.0. This is because `ParquetHiveSerDe` in Hive versions prior to 1.2.0 doesn't support decimal. This PR checks for this case and falls back to Spark SQL specific metastore table format.

Author: Yin Huai <yhuai@databricks.com>
Author: Cheng Lian <lian@databricks.com>

Closes #8130 from liancheng/spark-9757/old-hive-parquet-decimal.

(cherry picked from commit 6993031)
Signed-off-by: Cheng Lian <lian@databricks.com>
@asfgit asfgit closed this in 6993031 Aug 13, 2015
@liancheng liancheng deleted the spark-9757/old-hive-parquet-decimal branch August 13, 2015 15:48
CodingCat pushed a commit to CodingCat/spark that referenced this pull request Aug 17, 2015
… column

PR apache#7967 enables us to save data source relations to metastore in Hive compatible format when possible. But it fails to persist Parquet relations with decimal column(s) to Hive metastore of versions lower than 1.2.0. This is because `ParquetHiveSerDe` in Hive versions prior to 1.2.0 doesn't support decimal. This PR checks for this case and falls back to Spark SQL specific metastore table format.

Author: Yin Huai <yhuai@databricks.com>
Author: Cheng Lian <lian@databricks.com>

Closes apache#8130 from liancheng/spark-9757/old-hive-parquet-decimal.
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.

4 participants