<?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 Re: Is Limit input rate Docs not correct? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-limit-input-rate-docs-not-correct/m-p/101202#M40581</link>
    <description>&lt;P&gt;I'm not too concern with whether or not they should be used&amp;nbsp;&lt;SPAN&gt;simultaneously as much as the docs saying somethign to be true when the code shows it is not possible.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2024 11:23:09 GMT</pubDate>
    <dc:creator>Jcowell</dc:creator>
    <dc:date>2024-12-06T11:23:09Z</dc:date>
    <item>
      <title>Is Limit input rate Docs not correct?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-limit-input-rate-docs-not-correct/m-p/100982#M40498</link>
      <description>&lt;P&gt;In &lt;A href="https://docs.databricks.com/en/structured-streaming/delta-lake.html#limit-input-rate" target="_self"&gt;databricks docs&lt;/A&gt; it says&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;If you use&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;maxBytesPerTrigger&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;in conjunction with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;maxFilesPerTrigger&lt;/SPAN&gt;&lt;SPAN&gt;, the micro-batch processes data until either the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;maxFilesPerTrigger&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;maxBytesPerTrigger&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;limit is reached."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But based on the &lt;A href="https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/FileStreamOptions.scala#L53C3-L64C4" target="_self"&gt;source code&lt;/A&gt; this is not true.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;val maxBytesPerTrigger: Option[Long] = parameters.get("maxBytesPerTrigger").map { str =&amp;gt;
    Try(str.toLong).toOption.filter(_ &amp;gt; 0).map(op =&amp;gt;
      if (maxFilesPerTrigger.nonEmpty) {
        throw new IllegalArgumentException(
          "Options 'maxFilesPerTrigger' and 'maxBytesPerTrigger' " +
            "can't be both set at the same time")
      } else op
    ).getOrElse {
      throw new IllegalArgumentException(
        s"Invalid value '$str' for option 'maxBytesPerTrigger', must be a positive integer")
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i missing something here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 22:00:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-limit-input-rate-docs-not-correct/m-p/100982#M40498</guid>
      <dc:creator>Jcowell</dc:creator>
      <dc:date>2024-12-04T22:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is Limit input rate Docs not correct?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-limit-input-rate-docs-not-correct/m-p/101001#M40508</link>
      <description>&lt;P&gt;In my opinion, the reason for not using both options simultaneously is that the framework would face a logical conflict:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Should it stop reading after the maximum number of files is reached, even if the size limit hasn’t been exceeded?&lt;BR /&gt;Or&lt;/LI&gt;&lt;LI&gt;Should it stop processing when the size limit is reached, even if the file count is below the limit?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Handling these scenarios would add unnecessary complexity to the framework.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 04:23:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-limit-input-rate-docs-not-correct/m-p/101001#M40508</guid>
      <dc:creator>ozaaditya</dc:creator>
      <dc:date>2024-12-05T04:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is Limit input rate Docs not correct?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-limit-input-rate-docs-not-correct/m-p/101202#M40581</link>
      <description>&lt;P&gt;I'm not too concern with whether or not they should be used&amp;nbsp;&lt;SPAN&gt;simultaneously as much as the docs saying somethign to be true when the code shows it is not possible.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 11:23:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-limit-input-rate-docs-not-correct/m-p/101202#M40581</guid>
      <dc:creator>Jcowell</dc:creator>
      <dc:date>2024-12-06T11:23:09Z</dc:date>
    </item>
  </channel>
</rss>

