Skip to content

rough concept: detect pipe when calling job:show command#19

Open
chobie wants to merge 1 commit into
treasure-data:masterfrom
chobie:rough-cocept-detect-pipe-when-calling-job-result
Open

rough concept: detect pipe when calling job:show command#19
chobie wants to merge 1 commit into
treasure-data:masterfrom
chobie:rough-cocept-detect-pipe-when-calling-job-result

Conversation

@chobie
Copy link
Copy Markdown

@chobie chobie commented Oct 1, 2013

This concept improves td job:result comand when playing query with small set of result.
In most cases, Hive's ORDER BY takes 30 ~ 40 seconds as itself's initialization costs.
so I'd like to sort the result on local machine. for examples:

td job:show 123456 | sort -k 1 -k 2 -n

Unfortunately, my ruby skill is really poor. so could you consider this concept at first?

Thanks,
Shuhei

This concept improve `td job:result` comand when playing query with small set of result.
In most cases, Hive's `ORDER BY` takes 30 ~ 40 seconds as itself's initialization costs.
so I'd like to sort the result on local machine. for examples:

````
td job:show 123456 | sort -k 1 -k 2 -n
````

Unfortunately, my ruby skill is really poor. so could you consider this concept at first?

Thanks,
Shuhei
@ghost ghost assigned repeatedly Oct 1, 2013
Comment thread lib/td/command/job.rb
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@is_tty ?

or how define is_tty? method?

def on_tty?
  STDOUT.tty?
end

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

yea. probably to define method is good way for this.

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.

2 participants