Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8840

Float type coercion with hiveContext

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • SparkR
    • None

    Description

      Problem with float type coercion on SparkR with hiveContext.

      > result <- sql(hiveContext, "SELECT offset, percentage from data limit 100")
      > show(result)
      DataFrame[offset:float, percentage:float]
      > head(result)
      Error in as.data.frame.default(x[[i]], optional = TRUE) :
          cannot coerce class ""jobj"" to a data.frame
      

      This trouble looks like already exists (SPARK-2863 - Emulate Hive type
      coercion in native reimplementations of Hive functions) with same
      reason - not completed "native reimplementations of Hive..." not
      "...functions" only.

      I used spark 1.4.0 binaries from official site:
      http://spark.apache.org/downloads.html
      And running it on:

      • Hortonworks HDP 2.2.0.0-2041
      • with Hive 0.14
      • with disabled hooks for Application Timeline Servers (ATSHook) in hive-site.xml, commented:
        • hive.exec.failure.hooks,
        • hive.exec.post.hooks,
        • hive.exec.pre.hooks.

      Attachments

        Issue Links

          Activity

            People

              viirya L. C. Hsieh
              esinelnikov Evgeny SInelnikov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: