Hive
  1. Hive
  2. HIVE-7292 Hive on Spark
  3. HIVE-7702

Start running .q file tests on spark [Spark Branch]

    Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: spark-branch
    • Component/s: Spark
    • Labels:
      None

      Description

      Spark can currently only support a few queries, however there are some .q file tests which will pass today. The basic idea is that we should get some number of these actually working (10-20) so we can actually start testing the project.

      A good starting point might be the udf*, varchar*, or alter* tests:

      https://github.com/apache/hive/tree/spark/ql/src/test/queries/clientpositive

      To generate the output file for test XXX.q, you'd do:

      mvn clean install -DskipTests -Phadoop-2
      cd itests
      mvn clean install -DskipTests -Phadoop-2
      cd qtest-spark
      mvn test -Dtest= TestSparkCliDriver -Dqfile=XXX.q -Dtest.output.overwrite=true -Phadoop-2
      

      which would generate XXX.q.out which we can check-in to source control as a "golden file".

      Multiple tests can be run at a give time as so:

      mvn test -Dtest= TestSparkCliDriver -Dqfile=X1.q,X2.q -Dtest.output.overwrite=true -Phadoop-2
      
      1. HIVE-7702-spark.patch
        109 kB
        Chinna Rao Lalam
      2. HIVE-7702.1-spark.patch
        104 kB
        Chinna Rao Lalam

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Chinna Rao Lalam
              Reporter:
              Brock Noland
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development