You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if neither a copybook nor copybook contents are specified, spark-cobol will fail with the following error message:
Exception in thread "main" java.lang.IllegalStateException: Cannot define path to source files: missing parameter: 'path'
at za.co.absa.cobrix.spark.cobol.source.parameters.CobolParametersValidator$.validateOrThrow(CobolParametersValidator.scala:97)
at za.co.absa.cobrix.spark.cobol.source.DefaultSource.createRelation(DefaultSource.scala:52)
at za.co.absa.cobrix.spark.cobol.source.DefaultSource.createRelation(DefaultSource.scala:48)
at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:318)
Describe the bug
Currently, if neither a copybook nor copybook contents are specified,
spark-cobol
will fail with the following error message:To Reproduce
Expected behaviour
The error message should say clearly that a copybook is missing.
The text was updated successfully, but these errors were encountered: