Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3281

MongoDB: EmptyStackException when joining tables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.10
    • 8.7
    • Connector API

      Teiid throws java.util.EmptyStackException when joining data from table which has teiid_mongo:MERGE property enabled.

      Example:

      insert into customer2 values(1,'Pepa', 'Koukal');
      insert into customer2 values(2,'Jan', 'Tlemil');
      insert into Address values(1,1,'Pepas Street','Pepas City','Pepas State', 'Pepas zipcode');
      insert into Address values(2,2,'Jans Street','Pepa','Jans State', 'Jans zipcode');
      
      select a.*,b.* from customer2 a inner join Address b on a.CustomerId=b.CustomerId order by a.customerID
      
      Error: 
       java.util.EmptyStackException
      at java.util.Stack.peek(Stack.java:102)
      at java.util.Stack.pop(Stack.java:84)
      at org.teiid.translator.mongodb.MongoDBSelectVisitor.visit(MongoDBSelectVisitor.java:993)
      at org.teiid.language.SortSpecification.acceptVisitor(SortSpecification.java:53)
      at org.teiid.language.visitor.AbstractLanguageVisitor.visitNode(AbstractLanguageVisitor.java:51)
      at org.teiid.translator.mongodb.MongoDBSelectVisitor.append(MongoDBSelectVisitor.java:112)
      

      VDB and log are in the attachment.

        1. server.log
          170 kB
        2. mongodb-vdb.xml
          1 kB

              rhn-engineering-rareddy Ramesh Reddy
              felias_jira Filip Elias (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: