Paul Rogers created DRILL-4712:
----------------------------------

             Summary: Improved usability of classpath sample data files
                 Key: DRILL-4712
                 URL: https://issues.apache.org/jira/browse/DRILL-4712
             Project: Apache Drill
          Issue Type: Improvement
            Reporter: Paul Rogers
            Priority: Minor


Drill includes sample data in jar files (such as Foodmart). Drill provides the 
"cp" data source to access the data:

> SELECT * FROM cp.`customer.json`;

However, the cp data source is somewhat broken:

> USE cp;
> SHOW FILES;

Error: SYSTEM ERROR: UnsupportedOperationException: ClassPathFileSystem doesn't 
currently support listing files.

Modify the cp data source to support listing files. Since files are on the 
classpath, any search would include a vast number of internal Java class files 
and resource files.

To avoid that problem, perhaps move the sample data into a specific folder such 
as /foodmart. Then, we could create a specialized cp data source 
("cp.foodmart") that lists only that one folder.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to