Github user sunjincheng121 commented on the issue:

    https://github.com/apache/flink/pull/4111
  
    For example (from test case):
    You can run 
`org.apache.flink.table.api.java.batch.TableEnvironmentITCase#testAsFromAndToPrivateFieldPojo`
    
    * input1:
    
    ```
    0=age(Integer)
    1=department(String)
    2=name(String)
    3=(Double)
    ```
    
    * input1Mapping:
    
    ```
    0=1
    1=0
    2=3
    3=2
    ```
    
    Using this PR code logic,we get:
    
    input1AccessExprs:
    
    ```
    0=String
    1=Integer
    2=Double
    3=String
    ```
    If Using `for (i <- 0 until input1.getArity if input1Mapping.contains(i))` 
and delete you mentioned code.we get:
    input1AccessExprs:
    
    ```
    0=Integer
    1=String
    2=String
    3=Double
    ```
    That not we want, then the following code will throw exception:
      `Incompatible types of expression and result type.`
    
    I try to express my point clearly. But feel free to tell me If there 
something not enough.
    
    Thanks,
    SunJincheng



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to