Rediger

Del via


rxGetSparklyrConnection: Get sparklyr connection from Spark compute context

Description

Get a Spark compute context with sparklyr interop. rxGetSparklyrConnection get sparklyr spark connection from created Spark compute context.

Usage

  rxGetSparklyrConnection(
      computeContext = rxGetOption("computeContext"))

Arguments

computeContext

Compute context get created by rxSparkConnect.

Value

object of sparklyr spark connection

Author(s)

Microsoft Corporation Microsoft Technical Support

Examples


 ## Not run:

library("sparklyr")
cc <- rxSparkConnect(interop = "sparklyr")
sc <- rxGetSparklyrConnection(cc)
iris_tbl <- copy_to(sc, iris)
## End(Not run)