[
https://issues.jboss.org/browse/TEIID-1692?page=com.atlassian.jira.plugin...
]
Paul Nittel commented on TEIID-1692:
------------------------------------
Pointers from one doc to another can be highly annoying to someone who just wants the
answer. I still think an example is best.
BTW, the example in the Caching guide is wrong. ;-)
lookup(‘ISOCountryCodes, ‘CountryName’, ‘CountryCode’, ‘US’)
It's missing the end quote for the first argument and the 4th argument should not be a
quoted literal.
Since both docs may wind up with examples, having the same example might save some time.
Include an example of the LOOKUP function in the Ref Guide
----------------------------------------------------------
Key: TEIID-1692
URL:
https://issues.jboss.org/browse/TEIID-1692
Project: Teiid
Issue Type: Feature Request
Components: Documentation
Affects Versions: 7.4
Environment: All
Reporter: Paul Nittel
Assignee: Steven Hawkins
Once again I confused myself while trying to use the LOOKUP function. The first three
arguments are all quoted strings. A simple example might help demonstrate this to the
reader. I believe this may work as it follows the descriptive text.
SELECT LOOKUP('ModelName.StatePostalCodes', 'StateDisplayName',
'PostalCode', Table.WhatStateMatchesThisPostalCode) AS LookedUpStateName FROM
Table
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira