wangyum commented on issue #26866: [WIP][SPARK-30237][SQL] Move `sql()` method 
from DataType to AbstractTypemv sql method
URL: https://github.com/apache/spark/pull/26866#issuecomment-565277989
 
 
   @HyukjinKwon @AngersZhuuuu 
   
   These four usages don't work:
   ```scala
   scala> import org.apache.spark.sql.types._
   import org.apache.spark.sql.types._
   
   scala> StructType.sql
   <console>:27: error: value sql is not a member of object 
org.apache.spark.sql.types.StructType
          StructType.sql
                     ^
   
   scala> MapType.sql
   <console>:27: error: value sql is not a member of object 
org.apache.spark.sql.types.MapType
          MapType.sql
                  ^
   
   scala> ArrayType.sql
   <console>:27: error: value sql is not a member of object 
org.apache.spark.sql.types.ArrayType
          ArrayType.sql
                    ^
   
   scala> DecimalType.sql
   <console>:27: error: value sql is not a member of object 
org.apache.spark.sql.types.DecimalType
          DecimalType.sql
                      ^
   ```

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to