Skip to content

Commit

Permalink
Update failure message with possible solution (#2005)
Browse files Browse the repository at this point in the history
This refers to an unsolved issue reported by @Krever in #1308

Co-authored-by: Jules Ivanic <jules.ivanic@gmail.com>
Co-authored-by: Juliano Alves <von.juliano@gmail.com>
  • Loading branch information
3 people authored Nov 29, 2024
1 parent fd4a258 commit e343ba4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@ class ActionMacro(val c: MacroContext) extends ContextMacro with ReifyLiftings {
}
}
case other =>
c.fail(s"Batch actions must be static quotations. Found: '$other'")
c.fail(s"""Batch actions must be static quotations. Found: '$other'.
|It's possible this is being caused by type ascription when declaring the implicit
|schema meta, so try removing it if that's the case, e.g.:
`implicit val schema: ctx.SchemaMeta[Row] = schemaMeta[Row]("rows")` ->
`implicit val schema = schemaMeta[Row]("rows")`""")
}

object ExtractLiftings {
Expand Down

0 comments on commit e343ba4

Please sign in to comment.