dataframe
dataframe copied to clipboard
readCSV using ImportDataSchema does not yield correct path
Using @file:ImportDataSchema()
or the gradle plugin doesn't seem to generate the correct path for readCSV()
. It's probably because the relative path differs for the plugin compared to running the code from the IDE. The titanic example tries to circumvent this using System.setProperty("user.dir", System.getProperty("user.dir") + "/examples/idea-examples/titanic")
but that doesn't seem to do anything on my machine (Arch Linux).
setting ksp { arg("dataframe.resolutionDir", ...) }
also doesn't seem to help.
Maybe only the absolute path should be saved as defaultPath
?
Also, it's kinda strange that ImportDataSchema
exclusively allows a relative path. It should definitely always allow an absolute path.