JNSimba commented on issue #321:
URL: 
https://github.com/apache/doris-spark-connector/issues/321#issuecomment-3031668519

   > -- Doris CREATE TABLE SQL
   > create table AndTestTable (
   >     `user_id` varchar(10) not null,
   >     status int not null
   > ) ENGINE = OLAP
   > UNIQUE KEY(`user_id`)
   > COMMENT 'test'
   > DISTRIBUTED BY HASH(`user_id`) BUCKETS AUTO;
   > insert into AndTestTable values ('1', 1), ('2', 2), ('3', 3);
   > pyspark code
   > 
   > query = spark.read.format("doris")\
   >         .options(**doris_options)\
   >         .option('doris.table.identifier', 'database.AndTestTable')\
   >         .load().createOrReplaceTempView("and_test_table_temp")
   >   query = spark.sql("""
   >   select user_id, status
   >   from and_test_table_temp
   >   where (status & 2) > 0
   >   """)
   >   #query = 
spark.table("and_test_table_temp").filter(col("status").bitwiseAND(2) > 0)
   >   query.show()
   > exception message: Py4JJavaError: An error occurred while calling 
o91.showString. : java.lang.RuntimeException: query 
py4j.ClientServerConnection.run(ClientServerConnection.java:106) at 
java.lang.Thread.run(Thread.java:750) Caused by: 
org.apache.doris.spark.exception.DorisException: query plan failed, exception: 
errCode = 2, detailMessage = Unknown column 'null' in 'table list' at 
org.apache.doris.spark.client.DorisFrontendClient.lambda$getQueryPlan$6(DorisFrontendClient.java:318)
 ... 75 more
   
   This may be require the conversion of & in V2ExpressionBuilder


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to