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: 

collect_set wired result when Proton enable

danny_edm
New Contributor

Cluster : DBR 10.4 LTS with proton

Sample schema

seq_no (decimal)

type (string)

Sample data

seq_no type

1 A

1 A

2 A

2 B

2 B

command : F.size(F.collect_set(F.col("type")).over(Window.partitionBy("seq_no"))))

The cluster with Proton yielded wire results, like the size of array > 2; while without proton the results were still good.

Currently, have to use workaround code with F.size(F.array_distinct(F.collect_list())))

0 REPLIES 0
Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!