fanjia1024 opened a new issue, #129:
URL: https://github.com/apache/doris-spark-connector/issues/129

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   <dependency>
               <groupId>org.apache.doris</groupId>
               <artifactId>spark-doris-connector-3.2_2.12</artifactId>
               <version>1.3.0</version>
           </dependency>
   
   ### What's Wrong?
   
   use the official documentation to write bitmap in spark df mode use 
bitmap_from_array function to write data,like this 
       df.write.format("doris")
         .option("doris.table.identifier", s"$tableName")
         .option("doris.fenodes", s"$url:$sql")
         .option("user", s"$username")
         .option("password", s"$password")
         .option("sink.batch.size", 100)
         .option("sink.max-retries", 3)
         .option("doris.ignore-type", "bitmap")
         .option("doris.deserialize.arrow.async", true)
         .option("doris.deserialize.queue.size", 64)
         .option("sink.properties.column_separator", "|")
         .option("sink.properties.format", "json")
         //其它选项
         //指定你要写入的字段
         .option("doris.write.fields", fieldList)
         .save()
   fieldList=tag_id, UPDATED_TIME, tag_value, user_ids,CREATED_TIME, UPDATED_BY 
,user_id=bitmap_from_array(user_ids)
   
   ### What You Expected?
   
   connector can support this function like bitmap_from_array 
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to