QuestionQ143Verified/Cost & Performance OptimisationCopy linkReport a problemAsk AstroTutorSave questionWhich statement correctly describes the use of pyspark.sql.functions.broadcast?AIt marks a column as having low enough cardinality to properly map distinct values to available partitions, allowing a broadcast join.BIt marks a column as small enough to store in memory on all executors, allowing a broadcast join.CIt caches a copy of the indicated table on attached storage volumes for all active clusters within a Databricks workspace.DIt marks a DataFrame as small enough to store in memory on all executors, allowing a broadcast join.EIt caches a copy of the indicated table on all nodes in the cluster for use in all future queries during the cluster lifetime.Show AnswerAnswerExplanationpyspark.sql.functions.broadcast marks a DataFrame as small enough for use in a broadcast join, enabling Spark to distribute that small DataFrame to executors rather than performing a shuffle-based join.Learn morepyspark.sql.functions.broadcast — PySpark documentationShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion