laglangyue commented on issue #2405:
URL: 
https://github.com/apache/incubator-seatunnel/issues/2405#issuecomment-1214163347

   > Because the schema of fake source connector is defined in code:
   > 
   > 
![image](https://user-images.githubusercontent.com/51053924/184496770-9ec4dd90-2b65-4688-a79a-1f758835f387.png)
   > 
   > So the data source should like the following:
   > 
   > ```
   > name age timestamp
   > 
   > xiaoming 23 xxxxxxxxx
   > ```
   > 
   > You try to use sql plugin to tranform data, but your sql has some 
problems, `decimal` not contained in data source. You can change your sql as 
the follwing:
   > 
   > ```sql
   > select name,age from fake
   > ```
   
   yes, but I modify this in local.
   
   ```java
     @Override
       public SeaTunnelRowType getProducedType() {
           return new SeaTunnelRowType(
               new String[]{"name", "age", "timestamp", "decimal"},
               new SeaTunnelDataType<?>[]{BasicType.STRING_TYPE, 
BasicType.INT_TYPE, BasicType.LONG_TYPE, new DecimalType(38, 18)});
       }
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to