Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6783

Add spark-sql support for spark2 datasourceV2 and spark3

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • connectors-6.0.0
    • connectors, spark-connector
    • None

    Description

      While conducting the Spark 3.0 Integration test using Phoenix5-spark3-shaded module of project Phoenix-Connectors the following questions occurred.

       
      The test process is as follows:

      1. Phoenix created a table called "TABLE1" and then loaded the data into that table.

      2. After that, I tried to select the data of the table using Spark.

       

      As written in the README of Phoenix5-spark3 module, the part that loads Phoenix data into the Spark DataFrame using the Phoenix data source seems to work well.

      However, when I create Phoenix Spark data source table through Spark SQL and try to select that data source table, the following error occurs:

      java.util.concurrent.ExecutionException: org.apache.spark.sql.AnalysisException: phoenix is not a valid Spark SQL Data Source

       

      I wonder if the Phoenix-Connectors does not support creating Phoenix Spark data source tables, or if there is any other reason for this error.

      Attachments

        Issue Links

          Activity

            People

              rbr216 rejeb ben rejeb
              yjyj yj
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: