I’m not sure if this is a problem with the Community Plug-In or with the ARP.
If I click Preview, the SQL below runs FINE.
When I click Run, the SQL ERROS out.
Dremio is trying to select “table_a”.“key_column” when it should be “table_a”.dbo.“key_column”.
Adding any type of criteria or join also errors in both Preview and Run. I suspect it is adding criteria like where “table_a”.“key_column” = ‘ABC’ when it should be “table_a”.dbo.“key_column” = ‘ABC’
From error details:
"sql":"SELECT a.* FROM \"Sybase\".mydb.dbo.\"table_a\" a join \"Sybase\".mydb.dbo.\"table_b\" b on b.key_column = a.key_column limit 100","requestType":7,"user":"test","startTime":1569272961125,"finishTime":1569272961175,"datasetPath":["tmp","UNTITLED"],"datasetVersion":"0003694130033052","parents":[{"datasetPath":["Sybase","mydb","dbo","table_a"],"type":2},{"datasetPath":["Sybase","mydb","dbo","table_b"],"type":2}],"queryType":1,"failureInfo":"DATA_READ ERROR: The JDBC storage plugin failed while trying setup the SQL query. \n\nsql SELECT \"table_a\".\"key_column\", \"table_a\".\"key_type\", \"table_a\".\"key_group\", \"table_a\".\"key_desc1\", \"table_a\".\"key_desc2\", \"table_a\".\"maturity\", \"table_a\".\"ticker\", \"table_a\".\"source\", \"table_a\".\"change_date\", \"table_a\".\"del_flag\", \"table_a\".\"issue_date\", \"table_a\".\"wi_flag\", \"table_a\".\"pricing_key_column\", \"table_a\".\"liquidity\", \"table_a\".\"put_call\", \"table_a\".\"coup_freq\", \"table_a\".\"prin_freq\", \"table_a\".\"date_conv\", \"table_a\".\"currency\", \"table_a\".\"pmt_delay\", \"table_a\".\"pricing\", \"table_a\".\"modified_by\", \"table_a\".\"modification_time\", \"table_a\".\"reviewed_by\", \"table_a\".\"first_pmt_date\", \"table_a\".\"first_cpn_date\", \"table_a\".\"accrual_date\", \"table_a\".\"assoc_tbls\", \"table_a\".\"coupon_type\", \"table_a\".\"long_short\", \"table_a\".\"flag_144a\", \"table_a\".\"notional_flag\", \"table_a\".\"MTN\", \"table_a\".\"country\", \"table_a\".\"market\", \"table_a\".\"calc_type\", \"table_a\".\"owner\", \"table_a\".\"key_long_name\"\nFROM \"mydb\".\"dbo\".\"table_a\"\nINNER JOIN \"mydb\".\"dbo\".\"table_b\" ON \"table_b\".\"key_column\" = \"table_a\".\"key_column\"\nplugin Sybase\nSqlOperatorImpl JDBC_SUB_SCAN\nLocation
Is there a ARP file for Microsoft SQL Server? MS-SQL has the concept of DBO as well.