UDFs with same name in registerFunctions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.1.4, 2.2.5, 2.3.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If I haven't fully misunderstood something, UDFs Regex & Javascript have two implementations of which the latter always overrides the first one. So effectively the first Regex UDF and the first Javascript UDF cannot be used. 

      Check here lines 210-11 & 215-216:

      https://github.com/mongodb/mongo-spark/blob/a7afa0b4292a47752cc36488188f43d3f539fc75/src/main/scala/com/mongodb/spark/sql/helpers/UDF.scala

            Assignee:
            Ross Lawley
            Reporter:
            Hannu Kröger
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: