package magpie
Core Magpie functionality. The main entry point is com.silectis.magpie.MagpieContext,
which provides the ability to run commands, execute SQL, and more. It is available as mc
in
scala script tasks and scala notebook blocks.
Type Members
-
final
class
MagpieContext extends AnyRef
Main entry point for Magpie functionality.
Main entry point for Magpie functionality. The MagpieContext is used to execute commands, run SQL queries, get data frames for Magpie tables, and more.
Available as
mc
in scala script tasks and scala notebook blocks.Example usage:
val flavors = Seq("apple", "banana", "strawberry") flavors.foreach { f => mc.sql(s"select * from store_sales where flavor = '$f'") mc.exec(s"save result as table ${f}_sales") }
-
class
MagpieException extends RuntimeException
An exception thrown by magpie.
-
case class
MagpieInfo(name: String, instance: String, version: String, user: Option[String], organization: Option[String], cluster: Option[String], repository: Option[String], schema: Option[String], project: Option[String]) extends Product with Serializable
Information about a Magpie session
Information about a Magpie session
- name
name of the application (Magpie)
- instance
cluster instance name
- version
application version
- user
current user name, if set
- organization
current organization name, if set
- cluster
current cluster name, if set
- repository
current repository name, if set
- schema
current schema name, if set
- project
current project name, if set