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

Why delete support for "as" function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.11.0
    • None
    • None
    • None

    Description

      I know the solution for my following question,so I'm not asking for support to debug this code

      when I use the function "as("x","y","z")." in my code,
      two available preparation code for "create table":

      relevant code running log Deprecated?
      tEnv.registerDataStream("Orders", orderA,"user,product,amount"); ok YES
      tEnv.createTemporaryView("Orders", orderA,$("user,product,amount")); user,product,amount is not a field of type PojoType<Order, fields = [amount: Integer, product: String, user: Long]>. Expected: amount, product, user} NO

      Question:
      why the support for "as" is REMOVED when the newest officially recommended createTemporaryView is used?

      Attachments

        Activity

          People

            Unassigned Unassigned
            appleyuchi appleyuchi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: