[jira] [Commented] (DRILL-6107) NullPointerException while querying MongoDB collection

2018-06-10 Thread Duarte Silva (JIRA)


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

Duarte Silva commented on DRILL-6107:
-

The MongoDB version is 2.6.10 on an Ubuntu 16.04.4 LTS. To import the data I 
didn't take any special steps. From what I could gather the problem is that the 
`ports` property is very complex and that may be the origin of the problem.

> NullPointerException while querying MongoDB collection
> --
>
> Key: DRILL-6107
> URL: https://issues.apache.org/jira/browse/DRILL-6107
> Project: Apache Drill
>  Issue Type: Bug
>  Components:  Server
>Affects Versions: 1.11.0, 1.12.0
> Environment: Drill specific
> {noformat}
> export DRILL_HEAP=${DRILL_HEAP:-"1G"}
> export DRILL_MAX_DIRECT_MEMORY=${DRILL_MAX_DIRECT_MEMORY:-"2G"}
> {noformat}
> Other
> {noformat}
> Memory: 8 GiB
> Processor: 2 VCPU (Intel i7)
> Disk: 19 GiB (13 GiB free)
> OS: Ubuntu 16.06
> Java: OpenJDK 1.8.0_151
> {noformat}
>Reporter: Duarte Silva
>Priority: Major
> Attachments: collection.bson.log, drillbit.log
>
>
> I have installed Drill and configured it to connect to a MongoDB instance. 
> That instance as a collection with a single document. When I query that 
> collection using:
> {code:sql}
> select ports from mongo.ivre.hosts;{code}
> It fails with a NullPointerException. I'm able to query that collection as 
> long as I don't select the "ports" property. Looking at the exception stack 
> trace and respective Drill code it is clear that the "map" variable isn't 
> suppose to be "null".
> {code:java}
> public MapOrListWriter list(final String name) {
>   assert map != null;
>   return new MapOrListWriterImpl(map.list(name));
> }
> {code}
> I couldn't figure out why it wasn't being initialized. I have attached the 
> log and the collection BSON file. Thanks in advance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (DRILL-6107) NullPointerException while querying MongoDB collection

2018-06-08 Thread Kunal Khatua (JIRA)


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

Kunal Khatua commented on DRILL-6107:
-

[~dsncia]

We haven't had the time to look at this. We'll try to do a repro. 

 

Can you share the details of the MongoDB version that you're using and whether 
there are any specific steps to load the data?

> NullPointerException while querying MongoDB collection
> --
>
> Key: DRILL-6107
> URL: https://issues.apache.org/jira/browse/DRILL-6107
> Project: Apache Drill
>  Issue Type: Bug
>  Components:  Server
>Affects Versions: 1.11.0, 1.12.0
> Environment: Drill specific
> {noformat}
> export DRILL_HEAP=${DRILL_HEAP:-"1G"}
> export DRILL_MAX_DIRECT_MEMORY=${DRILL_MAX_DIRECT_MEMORY:-"2G"}
> {noformat}
> Other
> {noformat}
> Memory: 8 GiB
> Processor: 2 VCPU (Intel i7)
> Disk: 19 GiB (13 GiB free)
> OS: Ubuntu 16.06
> Java: OpenJDK 1.8.0_151
> {noformat}
>Reporter: Duarte Silva
>Priority: Major
> Attachments: collection.bson.log, drillbit.log
>
>
> I have installed Drill and configured it to connect to a MongoDB instance. 
> That instance as a collection with a single document. When I query that 
> collection using:
> {code:sql}
> select ports from mongo.ivre.hosts;{code}
> It fails with a NullPointerException. I'm able to query that collection as 
> long as I don't select the "ports" property. Looking at the exception stack 
> trace and respective Drill code it is clear that the "map" variable isn't 
> suppose to be "null".
> {code:java}
> public MapOrListWriter list(final String name) {
>   assert map != null;
>   return new MapOrListWriterImpl(map.list(name));
> }
> {code}
> I couldn't figure out why it wasn't being initialized. I have attached the 
> log and the collection BSON file. Thanks in advance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (DRILL-6107) NullPointerException while querying MongoDB collection

2018-02-19 Thread Duarte Silva (JIRA)

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

Duarte Silva commented on DRILL-6107:
-

Any updates on this? Are you guys missing something from me?

> NullPointerException while querying MongoDB collection
> --
>
> Key: DRILL-6107
> URL: https://issues.apache.org/jira/browse/DRILL-6107
> Project: Apache Drill
>  Issue Type: Bug
>  Components:  Server
>Affects Versions: 1.11.0, 1.12.0
> Environment: Drill specific
> {noformat}
> export DRILL_HEAP=${DRILL_HEAP:-"1G"}
> export DRILL_MAX_DIRECT_MEMORY=${DRILL_MAX_DIRECT_MEMORY:-"2G"}
> {noformat}
> Other
> {noformat}
> Memory: 8 GiB
> Processor: 2 VCPU (Intel i7)
> Disk: 19 GiB (13 GiB free)
> OS: Ubuntu 16.06
> Java: OpenJDK 1.8.0_151
> {noformat}
>Reporter: Duarte Silva
>Priority: Major
> Attachments: collection.bson.log, drillbit.log
>
>
> I have installed Drill and configured it to connect to a MongoDB instance. 
> That instance as a collection with a single document. When I query that 
> collection using:
> {code:sql}
> select ports from mongo.ivre.hosts;{code}
> It fails with a NullPointerException. I'm able to query that collection as 
> long as I don't select the "ports" property. Looking at the exception stack 
> trace and respective Drill code it is clear that the "map" variable isn't 
> suppose to be "null".
> {code:java}
> public MapOrListWriter list(final String name) {
>   assert map != null;
>   return new MapOrListWriterImpl(map.list(name));
> }
> {code}
> I couldn't figure out why it wasn't being initialized. I have attached the 
> log and the collection BSON file. Thanks in advance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (DRILL-6107) NullPointerException while querying MongoDB collection

2018-02-05 Thread Duarte Silva (JIRA)

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

Duarte Silva commented on DRILL-6107:
-

I did, still the same behaviour :/

> NullPointerException while querying MongoDB collection
> --
>
> Key: DRILL-6107
> URL: https://issues.apache.org/jira/browse/DRILL-6107
> Project: Apache Drill
>  Issue Type: Bug
>  Components:  Server
>Affects Versions: 1.11.0, 1.12.0
> Environment: Drill specific
> {noformat}
> export DRILL_HEAP=${DRILL_HEAP:-"1G"}
> export DRILL_MAX_DIRECT_MEMORY=${DRILL_MAX_DIRECT_MEMORY:-"2G"}
> {noformat}
> Other
> {noformat}
> Memory: 8 GiB
> Processor: 2 VCPU (Intel i7)
> Disk: 19 GiB (13 GiB free)
> OS: Ubuntu 16.06
> Java: OpenJDK 1.8.0_151
> {noformat}
>Reporter: Duarte Silva
>Priority: Major
> Attachments: collection.bson.log, drillbit.log
>
>
> I have installed Drill and configured it to connect to a MongoDB instance. 
> That instance as a collection with a single document. When I query that 
> collection using:
> {code:sql}
> select ports from mongo.ivre.hosts;{code}
> It fails with a NullPointerException. I'm able to query that collection as 
> long as I don't select the "ports" property. Looking at the exception stack 
> trace and respective Drill code it is clear that the "map" variable isn't 
> suppose to be "null".
> {code:java}
> public MapOrListWriter list(final String name) {
>   assert map != null;
>   return new MapOrListWriterImpl(map.list(name));
> }
> {code}
> I couldn't figure out why it wasn't being initialized. I have attached the 
> log and the collection BSON file. Thanks in advance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (DRILL-6107) NullPointerException while querying MongoDB collection

2018-02-04 Thread Kunal Khatua (JIRA)

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

Kunal Khatua commented on DRILL-6107:
-

Did you try enclosing the word with accent quotes? 
{code:sql}
select `ports` from mongo.ivre.hosts;
{code}

> NullPointerException while querying MongoDB collection
> --
>
> Key: DRILL-6107
> URL: https://issues.apache.org/jira/browse/DRILL-6107
> Project: Apache Drill
>  Issue Type: Bug
>  Components:  Server
>Affects Versions: 1.11.0, 1.12.0
> Environment: Drill specific
> {noformat}
> export DRILL_HEAP=${DRILL_HEAP:-"1G"}
> export DRILL_MAX_DIRECT_MEMORY=${DRILL_MAX_DIRECT_MEMORY:-"2G"}
> {noformat}
> Other
> {noformat}
> Memory: 8 GiB
> Processor: 2 VCPU (Intel i7)
> Disk: 19 GiB (13 GiB free)
> OS: Ubuntu 16.06
> Java: OpenJDK 1.8.0_151
> {noformat}
>Reporter: Duarte Silva
>Priority: Major
> Attachments: collection.bson.log, drillbit.log
>
>
> I have installed Drill and configured it to connect to a MongoDB instance. 
> That instance as a collection with a single document. When I query that 
> collection using:
> {code:sql}
> select ports from mongo.ivre.hosts;{code}
> It fails with a NullPointerException. I'm able to query that collection as 
> long as I don't select the "ports" property. Looking at the exception stack 
> trace and respective Drill code it is clear that the "map" variable isn't 
> suppose to be "null".
> {code:java}
> public MapOrListWriter list(final String name) {
>   assert map != null;
>   return new MapOrListWriterImpl(map.list(name));
> }
> {code}
> I couldn't figure out why it wasn't being initialized. I have attached the 
> log and the collection BSON file. Thanks in advance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)