<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The case class reports an error when running in the notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/the-case-class-reports-an-error-when-running-in-the-notebook/m-p/31626#M23038</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1492iD9F0F8D82410AFCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="local"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1497iDD1091ADC6F0BFB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="local" alt="local" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1485i8D185840505C6B9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;As shown in the figure, the case class and the json string are converted through fasterxml.jackson, but an unexpected error occurred during the running of the code. I think this problem may be related to the loading principle of the notebook. Because of the same code, I get the correct result when I run it on my local computer﻿&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 02:17:04 GMT</pubDate>
    <dc:creator>齐木木</dc:creator>
    <dc:date>2022-09-16T02:17:04Z</dc:date>
    <item>
      <title>The case class reports an error when running in the notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/the-case-class-reports-an-error-when-running-in-the-notebook/m-p/31626#M23038</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1492iD9F0F8D82410AFCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="local"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1497iDD1091ADC6F0BFB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="local" alt="local" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1485i8D185840505C6B9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;As shown in the figure, the case class and the json string are converted through fasterxml.jackson, but an unexpected error occurred during the running of the code. I think this problem may be related to the loading principle of the notebook. Because of the same code, I get the correct result when I run it on my local computer﻿&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 02:17:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-case-class-reports-an-error-when-running-in-the-notebook/m-p/31626#M23038</guid>
      <dc:creator>齐木木</dc:creator>
      <dc:date>2022-09-16T02:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: The case class reports an error when running in the notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/the-case-class-reports-an-error-when-running-in-the-notebook/m-p/31627#M23039</link>
      <description>&lt;P&gt;code：&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var str="{\"app_type\":\"installed-app\"}"
    import com.fasterxml.jackson.databind.ObjectMapper
    import com.fasterxml.jackson.module.scala.DefaultScalaModule
    val mapper = new ObjectMapper()
    mapper.registerModule(DefaultScalaModule)
    val rmodel=mapper.readValue(str, classOf[appDeeplink])
    println(rmodel)&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;import com.fasterxml.jackson.annotation._
&amp;nbsp;
&amp;nbsp;
@JsonIgnoreProperties(ignoreUnknown = true)
case class appDeeplink(
                        @JsonProperty("app_type") app_type: String
                      ) &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 02:29:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-case-class-reports-an-error-when-running-in-the-notebook/m-p/31627#M23039</guid>
      <dc:creator>齐木木</dc:creator>
      <dc:date>2022-09-16T02:29:54Z</dc:date>
    </item>
  </channel>
</rss>

