Skip to content

Commit

Permalink
Issue 382: Fix AdvancedConfiguration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeMarin1 authored Aug 9, 2024
1 parent 629e07d commit 6335d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/AdvancedConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ contains all indexed metadata in an easy-to-analyze format.

```scala
import io.qbeast.spark.QbeastTable
val qt = QbeastTable.forTable(spark, tablePath)
val dnb = qt.denormalizedBlocks
val qt = QbeastTable.forPath(spark, tablePath)
val dnb = qt.getDenormalizedBlocks()
dnb.select("filePath").distinct.count() // number of files
dnb.count() // number of blocks
dnb.groupBy("filePath").count().orderBy(col("count").desc).show() // Show the files with the most blocks
Expand Down

0 comments on commit 6335d9c

Please sign in to comment.