You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2019/01/21 05:33:42 UTC

[GitHub] ldzhjn commented on a change in pull request #5598: IGNITE-10314 Spark dataframe will get wrong schema if user executes add/drop column DDL

ldzhjn commented on a change in pull request #5598: IGNITE-10314 Spark dataframe will get wrong schema if user executes add/drop column DDL
URL: https://github.com/apache/ignite/pull/5598#discussion_r249328938
 
 

 ##########
 File path: modules/spark/src/main/scala/org/apache/ignite/spark/impl/package.scala
 ##########
 @@ -71,29 +74,22 @@ package object impl {
     def sqlTableExists(ignite: Ignite, tabName: String, schemaName: Option[String]): Boolean =
         sqlTableInfo(ignite, tabName, schemaName).isDefined
 
-    /**
-      * @param ignite Ignite instance.
-      * @param tabName Table name.
-      * @param schemaName Optional schema name.
-      * @return QueryEntity for a given table.
-      */
-    def igniteSQLTable(ignite: Ignite, tabName: String, schemaName: Option[String]): Option[QueryEntity] =
-        sqlTableInfo[Any, Any](ignite, tabName, schemaName).map(_._2)
-
     /**
       * @param ignite Ignite instance.
       * @param tabName Table name.
       * @param schemaName Optional schema name.
       * @return Cache name for given table.
       */
     def sqlCacheName(ignite: Ignite, tabName: String, schemaName: Option[String]): Option[String] =
-        sqlTableInfo[Any, Any](ignite, tabName, schemaName).map(_._1.getName)
+        if (sqlTableInfo(ignite, tabName, schemaName).isDefined)
 
 Review comment:
   Fixed

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services