Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Fix spelling; rename file #1605

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import org.apache.spark.sql.{DataFrame, Row}
import scala.collection.mutable
import scala.collection.mutable.ArrayBuffer

object AggregateWithinPartitons {
object AggregateWithinPartitions {

/**
* Run aggregation within each partition without incurring a data shuffle. Currently support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package org.apache.sedona.viz.sql

import org.apache.sedona.viz.sql.operator.{AggregateWithinPartitons, VizPartitioner}
import org.apache.sedona.viz.sql.operator.{AggregateWithinPartitions, VizPartitioner}
import org.apache.sedona.viz.sql.utils.{Conf, LineageDecoder}
import org.apache.spark.sql.functions.lit
import org.locationtech.jts.geom.Envelope
Expand All @@ -43,7 +43,11 @@ class optVizOperatorTest extends VizTestBase {

// Test aggregation within partitions
val result =
AggregateWithinPartitons(newDf.withColumn("weight", lit(100.0)), "pixel", "weight", "avg")
AggregateWithinPartitions(
newDf.withColumn("weight", lit(100.0)),
"pixel",
"weight",
"avg")
assert(result.rdd.getNumPartitions == secondaryPID)

// Test the colorize operator
Expand Down Expand Up @@ -71,7 +75,7 @@ class optVizOperatorTest extends VizTestBase {
assert(newDf.rdd.getNumPartitions == secondaryPID)

// Test aggregation within partitions
val result = AggregateWithinPartitons(newDf, "pixel", "weight", "count")
val result = AggregateWithinPartitions(newDf, "pixel", "weight", "count")
assert(result.rdd.getNumPartitions == secondaryPID)

// Test the colorize operator
Expand Down
Loading