Navigation Menu

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

Support columns for temporary table #401

Merged
merged 1 commit into from Sep 22, 2015
Merged

Conversation

kou
Copy link
Member

@kou kou commented Sep 15, 2015

Use cases:

  • Named output columns in select like "AS" in SQL
    • Creating a column to temporary table and assigning return value
      of function to the column:

      select --filter all_records() \
             --column[snippet].type ShortText \
             --column[snippet].value 'snippet_html(body)' \
             --output_columns _id,snippet
      
  • Drilldown by computed value
    • Select -> Create temporary column -> Compute value -> Drilldown:

      select --filter all_records()
      --column[year].type UInt8
      --column[year].value 'time_to_year(updated_at)'
      --drilldown year

Use cases:

  * Named output columns in select like "AS" in SQL
    * Creating a column to temporary table and assigning return value
      of function to the column:

          select --filter all_records() \
                 --column[snippet].type ShortText \
                 --column[snippet].value 'snippet_html(body)' \
                 --output_columns _id,snippet

  * Drilldown by computed value
    * Select -> Create temporary column -> Compute value -> Drilldown:

          select --filter all_records() \
                 --column[year].type UInt8 \
                 --column[year].value 'time_to_year(updated_at)' \
                 --drilldown year
kou added a commit that referenced this pull request Sep 22, 2015
@kou kou merged commit b962058 into master Sep 22, 2015
@kou kou deleted the support-column-for-temporary-table branch September 22, 2015 08:31
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.

None yet

1 participant