Skip to content

Commit 3ffff26

Browse files
authored
Merge pull request #1453 from Kotlin/zaleslaw/parquet-fix
Fixing linter
2 parents 938a88f + b8cb011 commit 3ffff26

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

docs/StardustDocs/topics/dataSources/ApacheArrow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ and in [`%use dataframe`](SetupKotlinNotebook.md#integrate-kotlin-dataframe) for
2525
> {style="warning"}
2626
2727
> Structured (nested) Arrow types such as Struct are not supported yet in Kotlin DataFrame.
28-
> See an issue: [Add inner / Struct type support in Arrow](https://github.com/Kotlin/dataframe/issues/536)
28+
> See the issue: [Add inner / Struct type support in Arrow](https://github.com/Kotlin/dataframe/issues/536)
2929
> {style="warning"}
3030
3131
## Read

docs/StardustDocs/topics/dataSources/Parquet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Requires the [`dataframe-arrow` module](Modules.md#dataframe-arrow), which is in
2323
> {style="warning"}
2424
2525
> Structured (nested) Arrow types such as Struct are not supported yet in Kotlin DataFrame.
26-
> See an issue: [Add inner / Struct type support in Arrow](https://github.com/Kotlin/dataframe/issues/536)
26+
> See the issue: [Add inner / Struct type support in Arrow](https://github.com/Kotlin/dataframe/issues/536)
2727
> {style="warning"}
2828
2929
## Reading Parquet Files
@@ -68,7 +68,7 @@ Dataset API to scan the data and materialize it as a Kotlin `DataFrame`.
6868

6969
```kotlin
7070
// Read from file paths (as strings)
71-
val df1 = DataFrame.readParquet("data/sales.parquet")
71+
val df = DataFrame.readParquet("data/sales.parquet")
7272
```
7373

7474
<!---FUN readParquetFilePath-->

samples/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/io/Parquet.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package org.jetbrains.kotlinx.dataframe.samples.io
22

33
import io.kotest.matchers.shouldBe
4-
import java.io.File
5-
import java.nio.file.Path
6-
import java.nio.file.Paths
74
import org.jetbrains.kotlinx.dataframe.DataFrame
85
import org.jetbrains.kotlinx.dataframe.api.NullabilityOptions
9-
import org.junit.Test
106
import org.jetbrains.kotlinx.dataframe.io.readParquet
117
import org.jetbrains.kotlinx.dataframe.testParquet
8+
import org.junit.Test
9+
import java.io.File
10+
import java.nio.file.Paths
1211

1312
class Parquet {
1413
@Test
@@ -56,7 +55,7 @@ class Parquet {
5655
val df = DataFrame.readParquet(
5756
file,
5857
nullability = NullabilityOptions.Infer,
59-
batchSize = 64L * 1024
58+
batchSize = 64L * 1024,
6059
)
6160
// SampleEnd
6261
df.rowsCount() shouldBe 300

0 commit comments

Comments
 (0)