troy icon indicating copy to clipboard operation
troy copied to clipboard

Fix non-exhaustive pattern matching

Open OmniaGM opened this issue 8 years ago • 0 comments

[warn]/troy/troy-schema/src/main/scala/troy/schema/ColumnOps.scala:13: match may not be exhaustive.
[warn] It would fail on the following inputs: In, NotEquals
[warn]     def operandType(operator: Operator): Option[DataType] = operator match {
[warn]                                                             ^
[warn]/troy/troy-schema/src/main/scala/troy/schema/Schema.scala:87: match may not be exhaustive.
[warn] It would fail on the following inputs: Simple(_, _, Constant(_)), Simple(_, _, FunctionCall(_, _)), Simple(_, _, ListLiteral(_)), Simple(_, _, MapLiteral(_)), Simple(_, _, Named(_)), Simple(_, _, SetLiteral(_)), Simple(_, _, TupleLiteral(_)), Simple(_, _, TypeHint(_, _)), Simple(_, _, UdtLiteral(_))
[warn]     Result.flattenSeq(where.relations.map {

OmniaGM avatar Aug 21 '16 20:08 OmniaGM