dwave opened a new issue, #8012:
URL: https://github.com/apache/seatunnel/issues/8012

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
    使用sql transform 增加了两个字段,没有使用as命别名,导致目标表这两个字段没有数据导入
   
![11ef38e43d85d5289e3574855e0e812](https://github.com/user-attachments/assets/d1b11c59-acd3-4eb1-9048-810aa93520bc)
   
![fe0c02387c5537136b75ed394799b38](https://github.com/user-attachments/assets/b72abb00-84c9-45c4-892b-03a661bc2af2)
   
   
   ### SeaTunnel Version
   
   2.3.8
   
   ### SeaTunnel Config
   
   ```conf
   env {
   "job.mode"=BATCH
   "job.name"="SeaTunnel_Job"
   "savemode.execute.location"=CLUSTER
   }
   source {
   Jdbc {
       "connection_check_timeout_sec"="30"
       "fetch_size"="0"
       "use_select_count"="false"
       "skip_analyze"="false"
       "split.size"="80960"
       "split.even-distribution.factor.upper-bound"="100.0"
       "split.even-distribution.factor.lower-bound"="0.05"
       "split.sample-sharding.threshold"="1000"
       "split.inverse-sampling.rate"="1000"
       parallelism="1"
       "result_table_name"=Table15598171050848
       query="SELECT \"item_id\", \"item_code\", \"item_name\", \"sub_id\", 
\"sub_code\", \"sub_name\", \"big_id\", \"big_code\", \"big_name\", 
\"indw_time\", \"tenant_id\", \"updw_time\", \"core_dish_flag\", \"area_id\", 
\"item_crid\", \"stand_price\", \"item_property\", \"item_desc\", \"item_stat\" 
FROM \"db\".\"dim\".\"dim_item\""
       user=""
       url=""
       password=""
       driver="org.postgresql.Driver"
   }
   }
   transform {
   Sql {
       query="select * , cast (CURRENT_DATE() as string), cast (CURRENT_TIME() 
as string)  from source"
       "result_table_name"=Table15598171050849
       "source_table_name"=Table15598171050848
   }
   }
   sink {
   StarRocks {
       "batch_max_rows"="102400"
       "batch_max_bytes"="5242880"
       "enable_upsert_delete"="false"
       "schema_save_mode"="CREATE_SCHEMA_WHEN_NOT_EXIST"
       "data_save_mode"="APPEND_DATA"
       "save_mode_create_template"="CREATE TABLE IF NOT EXISTS 
`${database}`.`${table}` (\n${rowtype_primary_key},\n${rowtype_fields}\n) 
ENGINE=OLAP\n PRIMARY KEY (${rowtype_primary_key})\nDISTRIBUTED BY HASH 
(${rowtype_primary_key})PROPERTIES (\n    \"replication_num\" = \"1\" \n)"
       "http_socket_timeout_ms"="180000"
       "source_table_name"=Table15598171050849
       table="dim_item_with_ingestion_time_v2"
       database=test
       nodeUrls=[
           "10.9.99.31:8030"
       ]
       username=root
       password=
       base-url="jdbc:mysql://10.9.99.31:9030/test"
   }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   使用 seatunnel web 1.0.2生成任务,然后分别用seatunnel web和dolphinscheduler执行
   ```
   
   
   ### Error Exception
   
   ```log
   没有报错
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   Zeta 
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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