<?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>question How to get the  ConvertJSONToSQL to work with a MySql table that has a space in the name? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-ConvertJSONToSQL-to-work-with-a-MySql-table/m-p/281289#M209291</link>
    <description>&lt;P&gt;I'm using the ConvertJSONToSQL processor, and the MySql table has a space in the name.&amp;nbsp; It appears to be the problem because when I remove the name from the table it works as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can successfully query the table from various tools and the mysql command line using back ticks "`" around the table name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The table name:&lt;/STRONG&gt;&lt;BR /&gt;personal information&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I've tried the following:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;`personal information`&lt;/P&gt;
&lt;P&gt;"personal information"&lt;/P&gt;
&lt;P&gt;'personal information'&lt;/P&gt;
&lt;P&gt;\"personal information\"&lt;BR /&gt;[personal information]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 18:03:57 GMT</pubDate>
    <dc:creator>bryancjacobs</dc:creator>
    <dc:date>2019-10-24T18:03:57Z</dc:date>
    <item>
      <title>How to get the  ConvertJSONToSQL to work with a MySql table that has a space in the name?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-ConvertJSONToSQL-to-work-with-a-MySql-table/m-p/281289#M209291</link>
      <description>&lt;P&gt;I'm using the ConvertJSONToSQL processor, and the MySql table has a space in the name.&amp;nbsp; It appears to be the problem because when I remove the name from the table it works as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can successfully query the table from various tools and the mysql command line using back ticks "`" around the table name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The table name:&lt;/STRONG&gt;&lt;BR /&gt;personal information&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I've tried the following:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;`personal information`&lt;/P&gt;
&lt;P&gt;"personal information"&lt;/P&gt;
&lt;P&gt;'personal information'&lt;/P&gt;
&lt;P&gt;\"personal information\"&lt;BR /&gt;[personal information]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 18:03:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-ConvertJSONToSQL-to-work-with-a-MySql-table/m-p/281289#M209291</guid>
      <dc:creator>bryancjacobs</dc:creator>
      <dc:date>2019-10-24T18:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the  ConvertJSONToSQL to work with a MySql table that has a space in the name?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-ConvertJSONToSQL-to-work-with-a-MySql-table/m-p/281646#M209500</link>
      <description>&lt;P&gt;I created a hack to solve this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the ConvertJSONtoSQL processor I put table name = personal information.&amp;nbsp; Notice the space.&amp;nbsp; This generated the sql like so:&lt;BR /&gt;&lt;BR /&gt;insert into personal information &amp;lt;snipped&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then using a ReplaceTextProcessor I did a find and replace so such that the sql inserts were converted to the following:&lt;BR /&gt;&lt;BR /&gt;insert into&amp;nbsp;`personal information` &amp;lt;snipped&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works but is very hacky...would love to see the correct way to get the back ticks to work&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 16:37:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-ConvertJSONToSQL-to-work-with-a-MySql-table/m-p/281646#M209500</guid>
      <dc:creator>bryancjacobs</dc:creator>
      <dc:date>2019-10-30T16:37:21Z</dc:date>
    </item>
  </channel>
</rss>

