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

Added LIKE examples to syntax guide and examples. #271

Merged
merged 3 commits into from
Aug 31, 2017

Conversation

hjafarpour
Copy link
Contributor

No description provided.

```

LIKE operator is used for prefix or suffix matching. Currently we support '%' that represents
zero or more charachters.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: "charachters" -> "characters"

Copy link
Contributor

@joel-hamill joel-hamill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some grammar suggestions

docs/examples.md Outdated
@@ -197,7 +197,8 @@ CREATE TABLE pageviews_per_region_per_30secs AS \
```

As you can see we used UCASE and LCASE functions in KSQL to convert the values of gender and
regionid columns to upper and lower case, respectively, so you can match them correctly.
regionid columns to upper and lower case, respectively, so you can match them correctly. KSQL also
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lowercase

docs/examples.md Outdated
@@ -197,7 +197,8 @@ CREATE TABLE pageviews_per_region_per_30secs AS \
```

As you can see we used UCASE and LCASE functions in KSQL to convert the values of gender and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UCASE and LCASE functions in KSQL are used to convert the values of gender and regionid columns to upper and lower case, so that you can match them correctly. (remove As you can see and respectively)

zero or more charachters.

```sql
SELECT pageid, regionid from enrichedpv where regionid LIKE '%_8' AND gender LIKE '%MAIL%' AND
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be formatted as:

SELECT pageid, regionid
  FROM enrichedpv
  WHERE regionid LIKE '%_8' AND gender LIKE '%MAIL%' AND userid LIKE 'user_%';

@hjafarpour hjafarpour merged commit 621ccc3 into confluentinc:0.1.x Aug 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants