Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertColumnEquality truncates long columns #74

Open
MrPowers opened this issue Apr 15, 2020 · 0 comments
Open

assertColumnEquality truncates long columns #74

MrPowers opened this issue Apr 15, 2020 · 0 comments

Comments

@MrPowers
Copy link
Collaborator

Here's some example code:

it("provides a good error message for wide columns") {
  val df = spark.createDF(
    List(
      ("this is a really really really really long sentence", "this is a really really really really long sentence and the diff is hidden"),
      ("animation", "animation"),
      ("bill", "bill")
    ), List(
      ("sentence1", StringType, true),
      ("sentence2", StringType, true)
    )
  )

  assertColumnEquality(df, "sentence1", "sentence2")
}

It'll output this error message:

Screen Shot 2020-04-15 at 6 48 47 AM

assertColumnEquality should at least provide an option so the output doesn't truncate. Something like assertColumnEquality(df, "sentence1", "sentence2", truncate=false).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant