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

James Turton commented on DRILL-8190:
-------------------------------------

[~volodymyr] a small further update is that ObjectID join unit test mentioned 
in my 15 July comment above does not run into a Vector cast error when it is 
run in Drill 1.19. Instead it completes and returns results, in line with what 
[~clarkddc] has reported for his joins on 1.19. To me this suggests that the 
unit test is a reasonable representative of the bug reported by the user.


{code:java}
  @Test
  public void testObjectIdJoin() throws Exception {
    String query = "select sum(s1.sales) s1_sales, sum(s2.sales) s2_sales from 
mongo.%s.`%s` s1 join mongo.%s.`%s` s2 on s1._id = s2._id";

    testBuilder()
      .sqlQuery(query, DONUTS_DB, DONUTS_COLLECTION, DONUTS_DB, 
DONUTS_COLLECTION)
      .unOrdered()
      .baselineColumns("s1_sales", "s2_sales")
      .baselineValues(1194, 1194)
      .go();
  }
 {code}

> Mongo query: "Schema change not currently supported for schemas with complex 
> types"
> -----------------------------------------------------------------------------------
>
>                 Key: DRILL-8190
>                 URL: https://issues.apache.org/jira/browse/DRILL-8190
>             Project: Apache Drill
>          Issue Type: Bug
>          Components:  Server
>    Affects Versions: 1.20.0
>         Environment: RHEL 7: Linux  3.10.0-1160.59.1.el7.x86_64 #1 SMP Wed 
> Feb 16 12:17:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Daniel Clark
>            Assignee: James Turton
>            Priority: Major
>             Fix For: Future
>
>         Attachments: customGrounds.gz, log_4.txt, profile_4.json
>
>
> I'm attempting to run this mongo query that ran successfully in Drill 1.19 
> with the 1.21.0-SNAPSHOT build. 
>  
> SELECT `Elements_Efforts`.`EffortTypeName` AS `EffortTypeName`,
>   `Elements`.`ElementSubTypeName` AS `ElementSubTypeName`,
>   `Elements`.`ElementTypeName` AS `ElementTypeName`,
>   `Elements`.`PlanID` AS `PlanID`
> FROM `mongo.grounds`.`Elements` `Elements`
>   INNER JOIN `mongo.grounds`.`Elements_Efforts` `Elements_Efforts` ON 
> (`Elements`.`_id` = `Elements_Efforts`.`_id`)
> WHERE (`Elements`.`PlanID` = '1623263140')
> GROUP BY `Elements_Efforts`.`EffortTypeName`,
>   `Elements`.`ElementSubTypeName`,
>   `Elements`.`ElementTypeName`,
>   `Elements`.`PlanID`
>  
> I'm getting this error message: UserRemoteException : SYSTEM ERROR: 
> RuntimeException: Schema change not currently supported for schemas with 
> complex types. I've attached the log, profile, and a mongodb dump containing 
> the relevant datasets.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to