vogievetsky commented on a change in pull request #10232:
URL: https://github.com/apache/druid/pull/10232#discussion_r469375416



##########
File path: web-console/src/utils/ingestion-spec.tsx
##########
@@ -2663,7 +2663,7 @@ function guessInputFormat(sampleData: string[]): 
InputFormat {
       return inputFormatFromType('orc');
     }
     // Avro OCF 4 byte magic header: 
https://avro.apache.org/docs/current/spec.html#Object+Container+Files
-    if (sampleDatum.startsWith('Obj1')) {
+    if (sampleDatum.startsWith('Obj')) {

Review comment:
       sure thing. just do `if (sampleDatum.startsWith('Obj') && 
sampleDatum.charCodeAt(3) === 1)` 
   
   
![image](https://user-images.githubusercontent.com/177816/90039386-6746c200-dc7b-11ea-88cc-f0755fb79287.png)
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to