[JBoss JIRA] (TEIID-2695) Unable to use CASE statement in Select
by Van Halbert (JIRA)
[ https://issues.jboss.org/browse/TEIID-2695?page=com.atlassian.jira.plugin... ]
Van Halbert commented on TEIID-2695:
------------------------------------
I logged for each of the following users, and each came back false.
user - SELECT hasRole('prices') or SELECT hasRole('user')
and
portfolio = SELECT hasRole('superuser')
> Unable to use CASE statement in Select
> --------------------------------------
>
> Key: TEIID-2695
> URL: https://issues.jboss.org/browse/TEIID-2695
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.4.1
> Reporter: Van Halbert
> Assignee: Steven Hawkins
>
> Trying to add a <mask> of:
> <permission>
> <resource-name>Stocks.StockPrices.Price</resource-name>
> <mask>CASE WHEN hasRole('prices') THEN Price END</mask>
> </permission>
> even tried using "= true" just to see
> but it it always returns null for Prices.
> To test it, I logged in as 'user' using CommandLog vdb and issued:
> Select VDB, CASE WHEN hasRole('prices') THEN 'Y' Else 'N' END as V from TEIID_COMMANDLOG
> and 'N' was always returned for column V.
> teiid roles file:
> # A roles.properties file for use with the UsersRolesLoginModule
> # username=role1,role2
> portfolio=superuser
> viewonly=readonly
> user=user,prices
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (TEIID-2695) Unable to use CASE statement in Select
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2695?page=com.atlassian.jira.plugin... ]
Steven Hawkins commented on TEIID-2695:
---------------------------------------
Just to make sure I'm not confused, are you saying that something seems amiss with CASE, or is hasRole not meeting your expectation? For example just issue "SELECT hasRole('prices')"
> Unable to use CASE statement in Select
> --------------------------------------
>
> Key: TEIID-2695
> URL: https://issues.jboss.org/browse/TEIID-2695
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.4.1
> Reporter: Van Halbert
> Assignee: Steven Hawkins
>
> Trying to add a <mask> of:
> <permission>
> <resource-name>Stocks.StockPrices.Price</resource-name>
> <mask>CASE WHEN hasRole('prices') THEN Price END</mask>
> </permission>
> even tried using "= true" just to see
> but it it always returns null for Prices.
> To test it, I logged in as 'user' using CommandLog vdb and issued:
> Select VDB, CASE WHEN hasRole('prices') THEN 'Y' Else 'N' END as V from TEIID_COMMANDLOG
> and 'N' was always returned for column V.
> teiid roles file:
> # A roles.properties file for use with the UsersRolesLoginModule
> # username=role1,role2
> portfolio=superuser
> viewonly=readonly
> user=user,prices
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (TEIID-2695) Unable to use CASE statement in Select
by Van Halbert (JIRA)
Van Halbert created TEIID-2695:
----------------------------------
Summary: Unable to use CASE statement in Select
Key: TEIID-2695
URL: https://issues.jboss.org/browse/TEIID-2695
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 8.4.1
Reporter: Van Halbert
Assignee: Steven Hawkins
Trying to add a <mask> of:
<permission>
<resource-name>Stocks.StockPrices.Price</resource-name>
<mask>CASE WHEN hasRole('prices') THEN Price END</mask>
</permission>
even tried using "= true" just to see
but it it always returns null for Prices.
To test it, I logged in as 'user' using CommandLog vdb and issued:
Select VDB, CASE WHEN hasRole('prices') THEN 'Y' Else 'N' END as V from TEIID_COMMANDLOG
and 'N' was always returned for column V.
teiid roles file:
# A roles.properties file for use with the UsersRolesLoginModule
# username=role1,role2
portfolio=superuser
viewonly=readonly
user=user,prices
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (TEIID-2674) Makedep not honored with aggregate decomposition
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2674?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-2674.
-----------------------------------
Fix Version/s: 8.6
Resolution: Done
Added checks to look below grouping nodes (which can only be the case after pushing aggregates) when looking for dependent hints.
> Makedep not honored with aggregate decomposition
> ------------------------------------------------
>
> Key: TEIID-2674
> URL: https://issues.jboss.org/browse/TEIID-2674
> Project: Teiid
> Issue Type: Quality Risk
> Components: Query Engine
> Affects Versions: 7.7
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 8.6
>
>
> A makedep hint on a joined table under aggregation for a source that does not support the grouping will result in the makedep hint being ignored - for example where pm1 does not support join/aggregation:
> select count(x.e2), e1 from pm1.g1 x makedep, pm1.g2 where x.e3 = pm1.g2.e3 group by e1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (TEIID-2694) Support for Blob Input in Teiid REST services
by Madhu Garimilla (JIRA)
Madhu Garimilla created TEIID-2694:
--------------------------------------
Summary: Support for Blob Input in Teiid REST services
Key: TEIID-2694
URL: https://issues.jboss.org/browse/TEIID-2694
Project: Teiid
Issue Type: Enhancement
Affects Versions: 8.5
Environment: EAP 6.1 Alpha , Teiid 8.5
Reporter: Madhu Garimilla
Assignee: Steven Hawkins
We are trying to upload large files as Blobs using Teiid REST service through VDB. Though we are writing the Blob objects to HttpUrlConnection object, it is not received on REST method. As per the conversation in the thread "https://community.jboss.org/thread/232840" Current parameter handling is done through strings and needs be enhanced to support Blob objects.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months