<?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: Select attribute with wildcard character in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Select-attribute-with-wildcard-character/m-p/317442#M227167</link>
    <description>&lt;P&gt;I managed to solve the problem.&lt;BR /&gt;Below is an example of what I used to get the value of the attributes using the advanced part of the "UpdateAttribute".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mfolco_1-1622517208748.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31382i77842743E68ECCDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mfolco_1-1622517208748.png" alt="mfolco_1-1622517208748.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 03:13:51 GMT</pubDate>
    <dc:creator>mfolco</dc:creator>
    <dc:date>2021-06-01T03:13:51Z</dc:date>
    <item>
      <title>Select attribute with wildcard character</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Select-attribute-with-wildcard-character/m-p/285535#M211886</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am extracting image width and image height using ExtractImageMetadata processor and comparing the Image Width and Image Height with threshold value. If it is greater than the threshold value than I will resize the image. Attribute names, Image Width and Image Height is different for different image formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g. For .png&lt;/P&gt;
&lt;P&gt;PNG-IHDR.Image Height&lt;BR /&gt;PNG-IHDR.Image Width&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For .jpg&lt;/P&gt;
&lt;P&gt;JPEG.Image Height&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JPEG.Image Width&lt;/P&gt;
&lt;P&gt;I want to have a regular expression something like below. So that irrespective of image format, I will be able to compare the Image Width and Image Height.&lt;/P&gt;
&lt;P&gt;${"*Image Width":ge(1000):and(${"*Image Height":ge(1000)})}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Above regular expression is not working as expected. Any input will be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Biswa&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 10:22:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Select-attribute-with-wildcard-character/m-p/285535#M211886</guid>
      <dc:creator>Biswa</dc:creator>
      <dc:date>2019-12-13T10:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select attribute with wildcard character</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Select-attribute-with-wildcard-character/m-p/285557#M211906</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72164"&gt;@Biswa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NiFi's Expression Language (EL) will not support wildcard in attribute subject names.&lt;BR /&gt;&lt;BR /&gt;I suggest you pull height and width in to a set of standardized attribute names:&lt;BR /&gt;&lt;BR /&gt;Use the UpdateAttribute processor advanced UI to create some rules.&amp;nbsp; Fore example:&lt;BR /&gt;if "&lt;SPAN&gt;PNG-IHDR.Image Height" attribute exists, create new attribute "image height" with value from "PNG-IHDR.Image Height"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do the same for the other 3 unique attribute names, thus resulting in a static attribute subject names for height and width for use later in your flow for comparison/routing decisions.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 14:37:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Select-attribute-with-wildcard-character/m-p/285557#M211906</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-12-13T14:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select attribute with wildcard character</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Select-attribute-with-wildcard-character/m-p/317435#M227164</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;would it be possible to share this configuration inside the&amp;nbsp;&lt;SPAN&gt;advanced UI&lt;/SPAN&gt;?&lt;BR /&gt;I'm having the same problem and I haven't found any way to check if the "Image Height" exists.&lt;BR /&gt;Not even a way to get the value.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 01:12:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Select-attribute-with-wildcard-character/m-p/317435#M227164</guid>
      <dc:creator>mfolco</dc:creator>
      <dc:date>2021-06-01T01:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select attribute with wildcard character</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Select-attribute-with-wildcard-character/m-p/317442#M227167</link>
      <description>&lt;P&gt;I managed to solve the problem.&lt;BR /&gt;Below is an example of what I used to get the value of the attributes using the advanced part of the "UpdateAttribute".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mfolco_1-1622517208748.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31382i77842743E68ECCDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mfolco_1-1622517208748.png" alt="mfolco_1-1622517208748.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 03:13:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Select-attribute-with-wildcard-character/m-p/317442#M227167</guid>
      <dc:creator>mfolco</dc:creator>
      <dc:date>2021-06-01T03:13:51Z</dc:date>
    </item>
  </channel>
</rss>

