Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent datatype: lob type comparison... #3

Open
marianr opened this issue Sep 18, 2013 · 1 comment
Open

Inconsistent datatype: lob type comparison... #3

marianr opened this issue Sep 18, 2013 · 1 comment
Assignees
Labels

Comments

@marianr
Copy link
Collaborator

marianr commented Sep 18, 2013

According to the documentation : LOB columns cannot appear in WHERE clauses as a predicate except LIKE, CONTAINS, =, or <>.

@ghost ghost assigned marianr Sep 18, 2013
@marianr
Copy link
Collaborator Author

marianr commented Sep 18, 2013

From the SAP HANA Reference: Data Types:
LOB types are provided for storing and retrieving such large data. LOB types support the following operations.

The length() function returns the LOB length in bytes.
LIKE can be used to search LOB columns.

The LOB types have the following restrictions:

LOB columns cannot appear in ORDER BY or GROUP BY clauses.
LOB columns cannot appear in FROM clauses as a join predicate.
LOB columns cannot appear in WHERE clauses as a predicate except LIKE, CONTAINS, =, or <>.
LOB columns cannot appear in SELECT clauses as an aggregate function argument.
LOB columns cannot appear in SELECT DISTINCT clauses.
LOB columns cannot be used in set operations such as EXCEPT. UNION ALL is an exception.
LOB columns cannot be used as a primary key.
LOB columns cannot be used in CREATE INDEX statements.
LOB columns cannot be used in statistics update statements.

It looks like the documentation is not correct: Comparison on LOB column is not allowed . In the where clause only LIKE operator is allowed for comparing LOBs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant