<?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 Need a processor to test if a table sql exists and return the flowfile in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Need-a-processor-to-test-if-a-table-sql-exists-and-return/m-p/176555#M138805</link>
    <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;My dataflow is as follow:&lt;/P&gt;&lt;P&gt;My purpose is to create a table from a csv file and then put the data in this table. Everything is working good but I need to check if the table is created before storing the csv file. So I used the Execute SQL to run this query:&lt;/P&gt;&lt;PRE&gt;select count(table_name) from information_schema.tables where table_name='warranty'&lt;/PRE&gt;&lt;P&gt;But it returns only the number of rows and not the flowfile. My test is if number of row is one so I execute the rest. So I need to use dataflow which can check if the table is well created and execute the other processors if not it stop every thing. Can you help me plz I know that i can find another way but don't find ideas.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6355iDE7660750D9AB75A/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="capture.png" title="capture.png" /&gt;</description>
    <pubDate>Fri, 29 Jun 2018 17:30:53 GMT</pubDate>
    <dc:creator>AmiraKhalifa</dc:creator>
    <dc:date>2018-06-29T17:30:53Z</dc:date>
  </channel>
</rss>

