[
https://issues.jboss.org/browse/TEIID-1692?page=com.atlassian.jira.plugin...
]
Paul Nittel commented on TEIID-1692:
------------------------------------
Ramesh and I discussed this and agree that materialized views are a much better approach
to looking up static data.
As for the 4th argument and quotes, it certainly works fine when the 4th arg is a literal
value to be looked up. I quoted the column being looked up and the query returned nulls as
the returned value. I imagine most uses of LOOKUP would be against a column rather than a
literal value.
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