<?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: Error FAILED_READ_FILE.NO_HINT When Reading File from R2 Storage in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/135034#M2287</link>
    <description>&lt;P&gt;But the error is from aws and seen when&amp;nbsp;&lt;SPAN&gt;the payload size is incorrectly defined in the contentLength parameter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;Caused by: com.amazonaws.SdkClientException: Data read has a different length than the expected:&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This sounds like a bug, Was this resolved? I see you posted this query in June.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Oct 2025 16:18:40 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2025-10-15T16:18:40Z</dc:date>
    <item>
      <title>Error FAILED_READ_FILE.NO_HINT When Reading File from R2 Storage</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/121588#M2115</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm encountering the following error while attempting to read a file from R2 storage:&lt;/P&gt;&lt;PRE&gt;[FAILED_READ_FILE.NO_HINT] Error while reading file r2:REDACTED_LOCAL_PART@user_id.r2.cloudflarestorage.com/data/20250128_160228_54805_wpkza_e38751cf-969e-4514-8384-c37871ae0645. SQLSTATE: KD001&lt;/PRE&gt;&lt;P&gt;Could you please help me understand what might be causing this and how to resolve it?&lt;/P&gt;&lt;P&gt;P.S. I can query the same data successfully from both Trino and Snowflake (with R2 integration). Additionally, I’ve checked the target file using Spark locally, which appears valid.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 11:08:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/121588#M2115</guid>
      <dc:creator>Giktator</dc:creator>
      <dc:date>2025-06-12T11:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error FAILED_READ_FILE.NO_HINT When Reading File from R2 Storage</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/121589#M2116</link>
      <description>&lt;P&gt;Query example&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT distinct
  cost_type, 
  cost
FROM main_workspace.public.test
WHERE code_type = 'test'&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Jun 2025 11:10:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/121589#M2116</guid>
      <dc:creator>Giktator</dc:creator>
      <dc:date>2025-06-12T11:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error FAILED_READ_FILE.NO_HINT When Reading File from R2 Storage</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/121597#M2118</link>
      <description>&lt;P&gt;Exception from photon based warehouse:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data/20250128_152024_32868_wpkza_39d90943-d80c-476f-9d6f-bd9e15bed6ee. shaded.databricks.org.apache.hadoop.fs.s3a.AWSClientIOException
	at com.databricks.sql.io.FileReadException$.fileReadError(FileReadException.scala:48)
	at com.databricks.sql.io.FileReadException.fileReadError(FileReadException.scala)
	at 0xbc9f687 &amp;lt;photon&amp;gt;.RecordMissingOrCorruptFile(external/workspace_spark_3_5/photon/jni-wrappers/jni-io-broker.cc:128)
	at 0x6e0f037 &amp;lt;photon&amp;gt;.TryAndMaybeSkipFileOnError(external/workspace_spark_3_5/photon/exec-nodes/file-scan-node.cc:278)
	at 0x6e0d41f &amp;lt;photon&amp;gt;.WaitForIO(external/workspace_spark_3_5/photon/exec-nodes/file-scan-node.cc:873)
	at 0x6e0d41f &amp;lt;photon&amp;gt;.DoHasNextImpl(external/workspace_spark_3_5/photon/exec-nodes/file-scan-node.cc:692)
	at 0x6e0cb03 &amp;lt;photon&amp;gt;.HasNextImpl(external/workspace_spark_3_5/photon/exec-nodes/file-scan-node.cc:463)
	at 0x6d7c5af &amp;lt;photon&amp;gt;.OpenImpl(external/workspace_spark_3_5/photon/exec-nodes/grouping-agg-node.cc:126)
	at 0x6d7c3af &amp;lt;photon&amp;gt;.OpenImpl(external/workspace_spark_3_5/photon/exec-nodes/shuffle-sink-node.cc:171)
	at com.databricks.photon.JniApiImpl.open(Native Method)
	at com.databricks.photon.JniApi.open(JniApi.scala)
	at com.databricks.photon.JniExecNode.open(JniExecNode.java:73)
	at com.databricks.photon.PhotonPreShuffleResultHandler.$anonfun$getResult$1(PhotonExec.scala:1024)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at com.databricks.photon.PhotonResultHandler.timeit(PhotonResultHandler.scala:30)
	at com.databricks.photon.PhotonResultHandler.timeit$(PhotonResultHandler.scala:28)
	at com.databricks.photon.PhotonPreShuffleResultHandler.timeit(PhotonExec.scala:1017)
	at com.databricks.photon.PhotonPreShuffleResultHandler.getResult(PhotonExec.scala:1024)
	at com.databricks.photon.PhotonBasicEvaluatorFactory$PhotonBasicEvaluator$$anon$1.open(PhotonBasicEvaluatorFactory.scala:252)
	at com.databricks.photon.PhotonBasicEvaluatorFactory$PhotonBasicEvaluator$$anon$1.hasNextImpl(PhotonBasicEvaluatorFactory.scala:257)
	at com.databricks.photon.PhotonBasicEvaluatorFactory$PhotonBasicEvaluator$$anon$1.$anonfun$hasNext$1(PhotonBasicEvaluatorFactory.scala:275)
	at scala.runtime.java8.JFunction0$mcZ$sp.apply(JFunction0$mcZ$sp.java:23)
	at org.apache.spark.TaskContext.runFuncAsBillable(TaskContext.scala:268)
	at com.databricks.photon.PhotonBasicEvaluatorFactory$PhotonBasicEvaluator$$anon$1.hasNext(PhotonBasicEvaluatorFactory.scala:275)
	at com.databricks.photon.CloseableIterator$$anon$10.hasNext(CloseableIterator.scala:211)
	at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:460)
	at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:460)
	at com.databricks.photon.MetadataOnlyShuffleWriter.write(MetadataOnlyShuffleWriter.scala:50)
	at org.apache.spark.shuffle.ShuffleWriteProcessor.write(ShuffleWriteProcessor.scala:56)
	at org.apache.spark.scheduler.ShuffleMapTask.$anonfun$runTask$3(ShuffleMapTask.scala:87)
	at com.databricks.spark.util.ExecutorFrameProfiler$.record(ExecutorFrameProfiler.scala:110)
	at org.apache.spark.scheduler.ShuffleMapTask.$anonfun$runTask$1(ShuffleMapTask.scala:82)
	at com.databricks.spark.util.ExecutorFrameProfiler$.record(ExecutorFrameProfiler.scala:110)
	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:58)
	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:39)
	at org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:227)
	at org.apache.spark.scheduler.Task.doRunTask(Task.scala:204)
	at org.apache.spark.scheduler.Task.$anonfun$run$5(Task.scala:166)
	at com.databricks.unity.UCSEphemeralState$Handle.runWith(UCSEphemeralState.scala:51)
	at com.databricks.unity.HandleImpl.runWith(UCSHandle.scala:104)
	at com.databricks.unity.HandleImpl.$anonfun$runWithAndClose$1(UCSHandle.scala:109)
	at scala.util.Using$.resource(Using.scala:269)
	at com.databricks.unity.HandleImpl.runWithAndClose(UCSHandle.scala:108)
	at org.apache.spark.scheduler.Task.$anonfun$run$1(Task.scala:160)
	at com.databricks.spark.util.ExecutorFrameProfiler$.record(ExecutorFrameProfiler.scala:110)
	at org.apache.spark.scheduler.Task.run(Task.scala:105)
	at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$11(Executor.scala:1228)
	at org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally(SparkErrorUtils.scala:80)
	at org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally$(SparkErrorUtils.scala:77)
	at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:111)
	at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:1232)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at com.databricks.spark.util.ExecutorFrameProfiler$.record(ExecutorFrameProfiler.scala:110)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:1088)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: shaded.databricks.org.apache.hadoop.fs.s3a.AWSClientIOException: read on s3://path: com.amazonaws.SdkClientException: Data read has a different length than the expected: dataLength=0; expectedLength=829; includeSkipped=true; in.getClass()=class com.amazonaws.services.s3.AmazonS3Client$2; markedSupported=false; marked=0; resetSinceLastMarked=false; markCount=0; resetCount=0: Data read has a different length than the expected: dataLength=0; expectedLength=829; includeSkipped=true; in.getClass()=class com.amazonaws.services.s3.AmazonS3Client$2; markedSupported=false; marked=0; resetSinceLastMarked=false; markCount=0; resetCount=0
	at shaded.databricks.org.apache.hadoop.fs.s3a.S3AUtils.translateException(S3AUtils.java:251)
	at shaded.databricks.org.apache.hadoop.fs.s3a.Invoker.once(Invoker.java:136)
	at shaded.databricks.org.apache.hadoop.fs.s3a.Invoker.lambda$retry$4(Invoker.java:339)
	at shaded.databricks.org.apache.hadoop.fs.s3a.Invoker.retryUntranslated(Invoker.java:435)
	at shaded.databricks.org.apache.hadoop.fs.s3a.Invoker.retry(Invoker.java:335)
	at shaded.databricks.org.apache.hadoop.fs.s3a.Invoker.retry(Invoker.java:310)
	at shaded.databricks.org.apache.hadoop.fs.s3a.S3AInputStream.read(S3AInputStream.java:587)
	at java.base/java.io.DataInputStream.read(DataInputStream.java:151)
	at com.databricks.common.filesystem.LokiS3AInputStream.$anonfun$read$3(LokiS3FS.scala:254)
	at scala.runtime.java8.JFunction0$mcI$sp.apply(JFunction0$mcI$sp.java:23)
	at com.databricks.common.filesystem.LokiS3AInputStream.withExceptionRewrites(LokiS3FS.scala:244)
	at com.databricks.common.filesystem.LokiS3AInputStream.read(LokiS3FS.scala:254)
	at java.base/java.io.DataInputStream.read(DataInputStream.java:151)
	at com.databricks.sql.io.HDFSStorage$ReadFileImpl.lambda$fetchRange$0(HDFSStorage.java:108)
	at com.databricks.sql.io.Futures.run(Futures.java:74)
	at com.databricks.sql.io.PendingFutures.submit(PendingFutures.java:64)
	at com.databricks.sql.io.Storage$ReadFile.submit(Storage.java:209)
	at com.databricks.sql.io.HDFSStorage$ReadFileImpl.fetchRange(HDFSStorage.java:102)
	at com.databricks.sql.io.NativeStorage$ReadFileImpl.fetchRange(NativeStorage.java:437)
	at com.databricks.sql.io.BlockCachingStorage$ReadFileImpl.lambda$fetchRange$0(BlockCachingStorage.java:146)
	at com.databricks.sql.io.PendingFutures.lambda$submit$0(PendingFutures.java:72)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at org.apache.spark.util.threads.SparkThreadLocalCapturingRunnable.$anonfun$run$1(SparkThreadLocalForwardingThreadPoolExecutor.scala:161)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at com.databricks.sql.transaction.tahoe.mst.MSTThreadHelper$.runWithMstTxnId(MSTThreadHelper.scala:55)
	at org.apache.spark.util.threads.SparkThreadLocalCapturingHelper.$anonfun$runWithCaptured$5(SparkThreadLocalForwardingThreadPoolExecutor.scala:116)
	at com.databricks.spark.util.IdentityClaim$.withClaim(IdentityClaim.scala:48)
	at org.apache.spark.util.threads.SparkThreadLocalCapturingHelper.$anonfun$runWithCaptured$4(SparkThreadLocalForwardingThreadPoolExecutor.scala:115)
	at com.databricks.unity.UCSEphemeralState$Handle.runWith(UCSEphemeralState.scala:51)
	at org.apache.spark.util.threads.SparkThreadLocalCapturingHelper.runWithCaptured(SparkThreadLocalForwardingThreadPoolExecutor.scala:114)
	at org.apache.spark.util.threads.SparkThreadLocalCapturingHelper.runWithCaptured$(SparkThreadLocalForwardingThreadPoolExecutor.scala:91)
	at org.apache.spark.util.threads.SparkThreadLocalCapturingRunnable.runWithCaptured(SparkThreadLocalForwardingThreadPoolExecutor.scala:158)
	at org.apache.spark.util.threads.SparkThreadLocalCapturingRunnable.run(SparkThreadLocalForwardingThreadPoolExecutor.scala:161)
	... 3 more
Caused by: com.amazonaws.SdkClientException: Data read has a different length than the expected: dataLength=0; expectedLength=829; includeSkipped=true; in.getClass()=class com.amazonaws.services.s3.AmazonS3Client$2; markedSupported=false; marked=0; resetSinceLastMarked=false; markCount=0; resetCount=0
	at com.amazonaws.util.LengthCheckInputStream.checkLength(LengthCheckInputStream.java:151)
	at com.amazonaws.util.LengthCheckInputStream.read(LengthCheckInputStream.java:109)
	at com.amazonaws.internal.SdkFilterInputStream.read(SdkFilterInputStream.java:90)
	at com.amazonaws.services.s3.internal.S3AbortableInputStream.read(S3AbortableInputStream.java:125)
	at com.amazonaws.internal.SdkFilterInputStream.read(SdkFilterInputStream.java:90)
	at &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Jun 2025 13:03:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/121597#M2118</guid>
      <dc:creator>Giktator</dc:creator>
      <dc:date>2025-06-12T13:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error FAILED_READ_FILE.NO_HINT When Reading File from R2 Storage</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/135029#M2286</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/168901"&gt;@Giktator&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please run a test -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Databricks notebook shell (&lt;CODE&gt;%sh&lt;/CODE&gt;) to run a simple connectivity test to the R2 endpoint using &lt;CODE&gt;curl&lt;/CODE&gt; to confirm the network path is open:&lt;/P&gt;
&lt;DIV class="code-block ng-tns-c610868031-77 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation"&gt;
&lt;DIV class="formatted-code-block-internal-container ng-tns-c610868031-77"&gt;
&lt;DIV class="animated-opacity ng-tns-c610868031-77"&gt;
&lt;PRE class="ng-tns-c610868031-77"&gt;&lt;CODE class="code-container formatted ng-tns-c610868031-77" role="text" data-test-id="code-content"&gt;%sh curl -v https://&amp;lt;AccountID&amp;gt;.r2.cloudflarestorage.com&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Oct 2025 16:04:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/135029#M2286</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-10-15T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error FAILED_READ_FILE.NO_HINT When Reading File from R2 Storage</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/135034#M2287</link>
      <description>&lt;P&gt;But the error is from aws and seen when&amp;nbsp;&lt;SPAN&gt;the payload size is incorrectly defined in the contentLength parameter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;Caused by: com.amazonaws.SdkClientException: Data read has a different length than the expected:&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This sounds like a bug, Was this resolved? I see you posted this query in June.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 16:18:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/error-failed-read-file-no-hint-when-reading-file-from-r2-storage/m-p/135034#M2287</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-10-15T16:18:40Z</dc:date>
    </item>
  </channel>
</rss>

