Skip to content
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
4 changes: 4 additions & 0 deletions dataframe-json/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ tasks.withType<KotlinCompile> {
friendPaths.from(project(projects.core.path).projectDir)
}

tasks.withType<Javadoc> {
enabled = false
}

tasks.test {
useJUnitPlatform()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.jetbrains.kotlinx.dataframe.io;

import org.jetbrains.kotlinx.dataframe.DataFrame;
import java.util.Collections;

class JsonFacadeForDebugger {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this is java? There's @JvmStatic() too if you need it :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More straightforward ABI: avoiding false assumption that parameter with a default value can be added, file name, static method

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, but we got a failing javadoc task because we never used to have java XD

Copy link
Collaborator

@Jolanrensen Jolanrensen Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't add java source files from gradle

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed a fix disabling javadoc task. it was anyway an empty arfitact
image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then the only issue I have left is #24 but then again, when it comes around to that we can always move it to the jvm specific module

/**
* utility for rendering dataframe as interactive table in the debugger - it needs json model
* Java class easier to discover in the debugger
* DO NOT BREAK ABI OF THIS METHOD!!
* Keep it for backward compatibility, create a new method if signature must change
*/
static String convertToJson(DataFrame<?> df, int rowLimit, Integer nestedRowLimit) {
return JsonKt.toJsonWithMetadata(df, rowLimit, nestedRowLimit, false, Collections.emptyList(), false);
}
}