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

Support INSERT INTO SELECT statements/plans

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.1.0
    • Affects Version/s: 1.0.0
    • Component/s: None
    • None

      Hi,

      Currently, the connector mixes the trait InsertableRelation at DeaultSource which is the data source provider for Mongo relations. That is a kind of relation generator instead of a relation itself. Insert capabilities could be more easily leveraged if that interface was mixed at MongoRelation class (check InsertableRelation trait description: https://github.com/apache/spark/blob/v1.6.2/sql/core/src/main/scala/org/apache/spark/sql/sources/interfaces.scala#L294).

      Once the implementation is moved to MongoRelation, INSERT INTO SELECT statements will be available.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            darroyocazorla@gmail.com David Arroyo Cazorla
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: