cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot resolve due to data type mismatch: incompatible types ("STRING" and ARRAY<STRING>

oussValrho
New Contributor

hey i have this error from a while : 
Cannot resolve "(needed_skill_id = needed_skill_id)" due to data type mismatch: the left and right operands of the binary operator have incompatible types ("STRING" and "ARRAY<STRING>"). SQLSTATE: 42K09;
and these are the lines responsible for that : 

 to_update = current_link_df.where(col("active") == True).join(dataframe, ["position_id", "needed_skill_id"], how="left_anti")
    (
        DeltaTable.forName(spark, table_name).alias("t")
            .merge(to_update.withColumn("end_date", current_date()).alias("s"), "s.position_id = t.position_id AND s.needed_skill_id = t.needed_skill_id")
Any idea ?
Thank you !!
0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now