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

codegen bug surfaced by GraphFrames issue 165

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.2, 2.1.0, 2.2.0
    • 2.1.1, 2.2.0
    • SQL
    • None

    Description

      In GraphFrames, test test("named edges") in PatternMatchSuite surfaces a SQL codegen bug.
      This is described in https://github.com/graphframes/graphframes/issues/165

      Summary

      • The unit test does a simple motif query on a graph. Essentially, this means taking 2 DataFrames, doing a few joins, selecting 2 columns, and collecting the (tiny) DataFrame.
      • The test runs, but codegen fails. See the linked GraphFrames issue for the stacktrace.

      To reproduce this:

      Copying felixcheung's comment from the GraphFrames issue 165:

      Seems like codegen bug; it looks like at least 2 issues:
      1. At L472, inputadapter_value is not defined within scope
      2. inputadapter_value is an InternalRow, for this statement to work
      bhj_primitiveA = inputadapter_value;
      it should be
      bhj_primitiveA = inputadapter_value.getLong(0);

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              josephkb Joseph K. Bradley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: