pin_zhang created SPARK-21437:

             Summary: Java Keyword cannot be used in table schema
                 Key: SPARK-21437
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.1.1
            Reporter: pin_zhang

Java keywords doesn't work in spark211 that works in spark 201

import org.apache.spark.SparkConf
import org.apache.spark.SparkContext
import org.apache.spark.sql.SparkSession

case class a(`const`: Int)
case class b(aa: a)
object KeyworkdsTest {

  def main(args: Array[String]): Unit = {    
    val conf = new SparkConf().setAppName("scala").setMaster("local[2]")    
    val sc = new SparkContext(conf)    
    val spark = 
    val q = Seq(b(a(1)))
    val rdd = sc.makeRDD(q)
    val d = spark.createDataFrame(rdd)    

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to