[JBoss JIRA] (TEIID-1828) Dependent critiera in query plan but missing in actual query and additional information is provided
by Steven Hawkins (Resolved) (JIRA)
[ https://issues.jboss.org/browse/TEIID-1828?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-1828.
-----------------------------------
Resolution: Done
Added the max ndv values to the intermediate plan and a warning log indicating when the dependent join is not performed. A possible further enhancement would be to add the max ndv values to the final plan as well.
> Dependent critiera in query plan but missing in actual query and additional information is provided
> ---------------------------------------------------------------------------------------------------
>
> Key: TEIID-1828
> URL: https://issues.jboss.org/browse/TEIID-1828
> Project: Teiid
> Issue Type: Quality Risk
> Components: Query Engine
> Affects Versions: 7.4.1
> Environment: Oracle datasource, but likely all
> Reporter: Tom Fonteyne
> Assignee: Steven Hawkins
> Priority: Minor
> Fix For: 7.6
>
>
> tested on EDS 5.2 ER3 and ER6, same results:
> We're running a query which has two sets of dependent criteria in one of the queries. The plan looks ok, and in the command log we see that EDS is getting both sets of dependent criteria and bringing back rows which we would expect to be passed into the final query.
> The problem is that the final query has 1=1 in the place of where the dependent criteria should be.
> In the plan:
> + Query:SELECT g_0.account_code AS c_0, g_0.book_code AS c_1, SUM(g_0.func_amount) AS c_2 FROM TSL_SQL_Source.TSL.TSL_FINANCIAL_ACCOUNT_ITEMS_T2 AS g_0 WHERE (g_0.business_date = {d'2011-06-29'}) AND (g_0.account_code IN (<dependent values>)) AND (g_0.book_code IN (<dependent values>)) GROUP BY g_0.account_code, g_0.book_code ORDER BY c_0 NULLS FIRST
> The source specific query from the command log:
> 2011-11-14 11:35:35,313 DEBUG [org.teiid.CONNECTOR] (Worker1_QueryProcessorQueue60) Source-specific command: SELECT g_0.ACCOUNT_CODE AS c_0, g_0.BOOK_CODE AS c_1, SUM(g_0.FUNC_AMOUNT) AS c_2 FROM TSL_FINANCIAL_ACCOUNT_ITEMS_T2 g_0 WHERE g_0.BUSINESS_DATE = {d '2011-06-29'} AND 1 = 1 AND 1 = 1 GROUP BY g_0.ACCOUNT_CODE, g_0.BOOK_CODE ORDER BY c_0 NULLS FIRST
> Stats should be correct in the VDB. We also updated the stats using the system procedures just before executing the query.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] (TEIID-1831) Perl client using DBD:Pg hangs with resultset > 512 rows
by Van Halbert (Created) (JIRA)
Perl client using DBD:Pg hangs with resultset > 512 rows
--------------------------------------------------------
Key: TEIID-1831
URL: https://issues.jboss.org/browse/TEIID-1831
Project: Teiid
Issue Type: Bug
Components: ODBC
Affects Versions: 7.4.1
Environment: java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.10) (rhel-1.23.1.9.10.el5_7-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
on
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Teiid 7.5 with a patch applied for issue TEIID-1812
Perl client running on either Fedora 16 or RHEL 5.7
Using perl-DBD-Pg-2.18.0-3.fc16.x86_64
Reporter: Graeme Gillies
Assignee: Steven Hawkins
Fix For: 7.6
We are using a simple perl script to connect to teiid and run a query, spitting out the results. Unfortunately we find that the perl client hangs forever when trying to execture/return a resultset > 512 rows, but 512 or less it runs fine
The code for a test script is as follows
{code}
#! /usr/bin/perl
use strict;
use warnings;
use DBI;
my $db_type = 'Pg';
my $db_name = 'EngVDBF';
my $db_host = 'vdb.engineering.redhat.com';
my $db_port = 35432;
my $user = 'teiid';
my $pass = 'teiid';
my $attr = { AutoCommit => 0, RaiseError => 1 };
my $dsn = sprintf( "dbi:%s:dbname=%s;host=%s;port=%s",
$db_type, $db_name, $db_host, $db_port );
my $dbh = DBI->connect( $dsn, $user, $pass, $attr );
my $limit = ( $ARGV[0] ) ? "limit $ARGV[0]" : "";
my $query = <<QUERY;
select bugs.bug_id, bugs.priority, bugs.bug_severity
from BugzillaS.bugs bugs $limit
QUERY
my $sth = $dbh->prepare($query);
$sth->execute();
while ( my @row = $sth->fetchrow_array() ) {
print join( ',', map {"\"$_\""} @row ) . "\n";
}
$sth->finish();
$dbh->disconnect();
{code}
When running
{noformat}
./teiid.pl 512
{noformat}
Query runs fine, when we run
{noformat}
./teiid.pl 513
{noformat}
Client just sits there forever (the query actually has about 1800 odd rows returning).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months