<?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 Re: Exclude tables which matches pattern ListDatabase tables in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exclude-tables-which-matches-pattern-ListDatabase-tables/m-p/188075#M76000</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/69433/rameshtec1991.html" nodeid="69433"&gt;@Pavan M&lt;/A&gt;&lt;P&gt;Could you please see my edited answer.&lt;BR /&gt;let me know if you still having issues ..&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 20:34:29 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2018-03-16T20:34:29Z</dc:date>
    <item>
      <title>Exclude tables which matches pattern ListDatabase tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exclude-tables-which-matches-pattern-ListDatabase-tables/m-p/188072#M75997</link>
      <description>&lt;P&gt;I want to exclude the list of the tables which matched the regex pattern in list database tables. Can we do something like negate(or workaround to exclude tables which matches pattern) to TableNamePattern property to exclude the tables which have same pattern. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64642-screen-shot-2018-03-16-at-60533-pm.png" style="width: 760px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18677i3DA092704B379214/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64642-screen-shot-2018-03-16-at-60533-pm.png" alt="64642-screen-shot-2018-03-16-at-60533-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:57:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exclude-tables-which-matches-pattern-ListDatabase-tables/m-p/188072#M75997</guid>
      <dc:creator>rameshtec1991</dc:creator>
      <dc:date>2019-08-18T07:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude tables which matches pattern ListDatabase tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exclude-tables-which-matches-pattern-ListDatabase-tables/m-p/188073#M75998</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/69433/rameshtec1991.html" nodeid="69433"&gt;@Pavan M&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Method1:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can do by using &lt;STRONG&gt;RouteonAttribute processor &lt;/STRONG&gt;with &lt;STRONG&gt;negate expression&lt;/STRONG&gt; by using not function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exclude tables&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;${db.table.name:in("table_name1,table_name2,table_name3"):not()}&lt;/PRE&gt;&lt;P&gt;with the above expression we are going to exclude all the table names that are listed.&lt;/P&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;P&gt;using &lt;STRONG&gt;startsWith function&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;${db.table.name:startsWith("table_"):not()}&lt;/PRE&gt;&lt;P&gt;with above expression we are matching all table names that starts with table_ and using not to exclude them.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Method2:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;including all the &lt;STRONG&gt;possible tablename patterns in regex by using or operator (|)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table schema pattern&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A pattern for matching tables in the database. Within a pattern, &lt;STRONG&gt;"%" means &lt;/STRONG&gt;match &lt;STRONG&gt;any substring of 0 or more characters&lt;/STRONG&gt;, and &lt;STRONG&gt;"_" means match any one character&lt;/STRONG&gt;. The pattern must match the table name as it is stored in the database. If the property is not set, all tables will be retrieved.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Example:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if you are trying to exclude all the table that&lt;STRONG&gt; are not starting &lt;/STRONG&gt;with &lt;STRONG&gt;ua (or) ub&lt;/STRONG&gt; use the below regex pattern&lt;/P&gt;&lt;PRE&gt;[ua|ub]%&lt;/PRE&gt;&lt;P&gt;Now we are going to have all list of tables those are having names starting with ua (or) ub and having 0 or more characters.&lt;/P&gt;&lt;PRE&gt;[ua|ub]_&lt;/PRE&gt;&lt;P&gt;now with the above regex expression we are going to match all table names starting with ua (or) ub and match any one character after that.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 19:48:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exclude-tables-which-matches-pattern-ListDatabase-tables/m-p/188073#M75998</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-03-16T19:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude tables which matches pattern ListDatabase tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exclude-tables-which-matches-pattern-ListDatabase-tables/m-p/188074#M75999</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/users/18929/yaswanthmuppireddy.html"&gt;@Shu&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can we do something like, exclude table names that&lt;STRONG&gt; are &lt;/STRONG&gt;&lt;STRONG&gt;starting &lt;/STRONG&gt;with &lt;STRONG&gt;ua (or) ub?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 20:28:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exclude-tables-which-matches-pattern-ListDatabase-tables/m-p/188074#M75999</guid>
      <dc:creator>rameshtec1991</dc:creator>
      <dc:date>2018-03-16T20:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude tables which matches pattern ListDatabase tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exclude-tables-which-matches-pattern-ListDatabase-tables/m-p/188075#M76000</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/69433/rameshtec1991.html" nodeid="69433"&gt;@Pavan M&lt;/A&gt;&lt;P&gt;Could you please see my edited answer.&lt;BR /&gt;let me know if you still having issues ..&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 20:34:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exclude-tables-which-matches-pattern-ListDatabase-tables/m-p/188075#M76000</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-03-16T20:34:29Z</dc:date>
    </item>
  </channel>
</rss>

