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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chobie
Copy link

@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
@@ -26,6 +26,8 @@ module Command
/\A[\+]?2\z/ => 2,
}

is_tty = true
Copy link
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
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