QuestionQ297Verified/Using Spark SQLCopy linkReport a problemAsk AstroTutorSave questionWhat is the primary benefit of partitioning data when persisting tables?AIt automatically cleans up unused partitions to optimize storage.BIt compresses the data to save disk space.CIt optimizes by reading only the relevant subset of data from fewer partitions.DIt ensures that data is loaded into memory all at once for faster query execution.Show AnswerAnswerExplanationPartitioning enables partition pruning: when a query filters by partition values, the system can read only the relevant subset of data from fewer partitions, which reduces I/O and improves query performance.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion