Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-26603

[Umbrella] Decouple Hive with Flink planner

    XMLWordPrintableJSON

Details

    • Hide
      Users can use the Hive dialect directly without the extra jar swapping. Meanwhile, if you have put flink-sql-connector-hive-3.1.3.jar in FLINK_HOME/lib, please make sure flink-table-planner jar is not in FLINK_HOME/lib, otherwise it'll throw exception, more detail can be seen in FLINK-33168. Please also note to make Hive dialect more clear, Flink community has decided not to fall back to Flink's default dialect implicitly when it's in Hive dialect. So, it may cause some queries specified to Flink to fail in Hive dialect. In that case, please switch to Flink dialect explicitly. If you find some statements specified to Flink also should be included in Hive dialect for convenience, please report it to Flink community.
      Show
      Users can use the Hive dialect directly without the extra jar swapping. Meanwhile, if you have put flink-sql-connector-hive-3.1.3.jar in FLINK_HOME/lib, please make sure flink-table-planner jar is not in FLINK_HOME/lib, otherwise it'll throw exception, more detail can be seen in FLINK-33168 . Please also note to make Hive dialect more clear, Flink community has decided not to fall back to Flink's default dialect implicitly when it's in Hive dialect. So, it may cause some queries specified to Flink to fail in Hive dialect. In that case, please switch to Flink dialect explicitly. If you find some statements specified to Flink also should be included in Hive dialect for convenience, please report it to Flink community.

    Description

      To support Hive dialect with Flink, we have implemented FLIP-123, FLIP-152.

      But it also brings much maintenance burden and complexity for it mixes some logic specific to Hive with Flink planner. We should remove such logic from Flink planner and make it totally decouple with Flink planner.

      With this ticket, we expect:

      1:  there won't be any specific logic to Hive in planner module

      2:  remove  flink-sql-parser-hive from flink-table module 

      3:  remove the planner dependency in flink-connector-hive

      I'll update more details after investigation.

       

      Attachments

        Issue Links

          Activity

            People

              luoyuxia luoyuxia
              luoyuxia luoyuxia
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: