Uploaded image for project: 'Spark Connector'
  1. Spark Connector
  2. SPARK-216

UDFs with same name in registerFunctions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.4, 2.2.5, 2.3.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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@mongodb.com Ross Lawley
            Reporter:
            hkroger Hannu Kröger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: