Search in sources :

Example 21 with DataSetOptions

use of com.thinkbiganalytics.kylo.catalog.spi.DataSetOptions in project kylo by Teradata.

the class AbstractHiveDataSetProviderTest method writeWithoutPath.

/**
 * Verify exception when missing the table name.
 */
@Test(expected = MissingOptionException.class)
public void writeWithoutPath() {
    final MockHiveDataSetProvider provider = new MockHiveDataSetProvider();
    provider.write(Mockito.mock(KyloCatalogClient.class), new DataSetOptions(), Mockito.mock(DataFrame.class));
}
Also used : KyloCatalogClient(com.thinkbiganalytics.kylo.catalog.api.KyloCatalogClient) DataSetOptions(com.thinkbiganalytics.kylo.catalog.spi.DataSetOptions) DataFrame(org.apache.spark.sql.DataFrame) Test(org.junit.Test)

Aggregations

DataSetOptions (com.thinkbiganalytics.kylo.catalog.spi.DataSetOptions)21 Test (org.junit.Test)21 KyloCatalogClient (com.thinkbiganalytics.kylo.catalog.api.KyloCatalogClient)17 DataFrame (org.apache.spark.sql.DataFrame)16 File (java.io.File)2 Configuration (org.apache.hadoop.conf.Configuration)2 InvocationOnMock (org.mockito.invocation.InvocationOnMock)2 JdbcRelationProvider (com.thinkbiganalytics.kylo.catalog.spark.sources.jdbc.JdbcRelationProvider)1 Connection (java.sql.Connection)1 ResultSet (java.sql.ResultSet)1 Statement (java.sql.Statement)1 ArrayList (java.util.ArrayList)1 Nonnull (javax.annotation.Nonnull)1 Column (org.apache.spark.sql.Column)1 SQLConf (org.apache.spark.sql.SQLConf)1 SQLContext (org.apache.spark.sql.SQLContext)1 UnresolvedRelation (org.apache.spark.sql.catalyst.analysis.UnresolvedRelation)1 ScalaUDF (org.apache.spark.sql.catalyst.expressions.ScalaUDF)1 InsertIntoTable (org.apache.spark.sql.catalyst.plans.logical.InsertIntoTable)1 LogicalPlan (org.apache.spark.sql.catalyst.plans.logical.LogicalPlan)1