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

ExternalCatalog vs ExternalCatalogWithListener: backward compatibility problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 2.3.2, 2.4.0
    • None
    • Java API
    • None

    Description

      With Spark 2.3 

      spark.sharedState.externalCatalog used to give an object of ExternalCatalog which was actually an instance of HiveExternalCatalog

      With Spark 2.4 

      spark.sharedState.externalCatalog gives an object of ExternalCatalogWithListener which has HiveExternalCatalog as unwrapped delegate.

       

      We use HiveExternalCatalog to get HiveClient to perform Hive Operations.

       

       

      This change in method Signature is giving us backward compatibility problems such that code compiled with Spark 2.3 can not work with 2.4 due to the change. This results in Runtime exceptions including ClassCastException, NoSuchMethodError

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            dinesh028 dinesh sachdev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: