AbsaOSS / spark-commons

Apache License 2.0
7 stars 0 forks source link

Function `isOfType` might incorrectly reply on nonexistent column #95

Closed benedeki closed 1 year ago

benedeki commented 1 year ago

Describe the bug

Function isOfType might incorrectly reply true on nonexistent column, in case it checks for NullType.

To Reproduce

Steps to reproduce the behavior OR commands run:

  1. Response of
    isOfType[NullType]("field.that.does.not.exists")

    is true

Expected behavior

Returns false