[ 
https://issues.apache.org/jira/browse/DRILL-7578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17035467#comment-17035467
 ] 

ASF GitHub Bot commented on DRILL-7578:
---------------------------------------

cgivre commented on issue #1978: DRILL-7578: HDF5 Metadata Queries Fail with 
Large Files
URL: https://github.com/apache/drill/pull/1978#issuecomment-585272602
 
 
   @vvysotskyi 
   Thanks for your responses and feedback.   Maybe it would help if you saw how 
this worked:
   
   ```
   apache drill> select *
   2..semicolon> from dfs.test.`dset.h5`;
   
+-------+-----------+-----------+--------------------------------------------------------------------------+
   | path  | data_type | file_name |                                 int_data   
                              |
   
+-------+-----------+-----------+--------------------------------------------------------------------------+
   | /dset | DATASET   | dset.h5   | 
[[1,2,3,4,5,6],[7,8,9,10,11,12],[13,14,15,16,17,18],[19,20,21,22,23,24]] |
   
+-------+-----------+-----------+--------------------------------------------------------------------------+
   ```
   The column that is in question is the `int_data` column.  What's happening 
is if that column is greater than 16MB, Drill runs out of memory.  If a user is 
actually interested in analyzing that data, they should be using a data query 
which looks like this:
   ```
   apache drill> SELECT * FROM table(dfs.test.`dset.h5` (type => 'hdf5', 
defaultPath => '/dset'));
   +-----------+-----------+-----------+-----------+-----------+-----------+
   | int_col_0 | int_col_1 | int_col_2 | int_col_3 | int_col_4 | int_col_5 |
   +-----------+-----------+-----------+-----------+-----------+-----------+
   | 1         | 2         | 3         | 4         | 5         | 6         |
   | 7         | 8         | 9         | 10        | 11        | 12        |
   | 13        | 14        | 15        | 16        | 17        | 18        |
   | 19        | 20        | 21        | 22        | 23        | 24        |
   +-----------+-----------+-----------+-----------+-----------+-----------+
   4 rows selected (0.172 seconds)
   ```
   
   All that is happening in this PR is changing the default behavior in the 
metadata view.  I set the default to `false` so that a user would explicitly 
have to enable this capability. 
   
   If you're not liking this option, what would you suggest as an alternative.  
I don't think the current situation is ideal where Drill runs out of memory and 
crashes...
   
 
----------------------------------------------------------------
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:
us...@infra.apache.org


> HDF5 Metadata Queries Fail with Large Files
> -------------------------------------------
>
>                 Key: DRILL-7578
>                 URL: https://issues.apache.org/jira/browse/DRILL-7578
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.18.0
>            Reporter: Charles Givre
>            Assignee: Charles Givre
>            Priority: Major
>             Fix For: 1.18.0
>
>
> With large files, Drill runs out of memory when attempting to project large 
> datasets in the metadata.  
> This PR adds a configuration option which removes the dataset projection from 
> metadata queries and fixes this issue.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to