Skip to content

Fix duplicated history#1719

Merged
wangkuiyi merged 1 commit intosql-machine-learning:developfrom
shendiaomo:fix_dup_hist
Jan 15, 2020
Merged

Fix duplicated history#1719
wangkuiyi merged 1 commit intosql-machine-learning:developfrom
shendiaomo:fix_dup_hist

Conversation

@shendiaomo
Copy link
Copy Markdown
Collaborator

The current implementation of REPL saves history statements multiple times even they are the same, this commit fixes the behavior.
For example, if we input several empty statements (;s):
Before this commit, the history file looks like:

# tail ~/.sqlflow_history
;
;
;
;
;
;
;
;
;
;

After this commit, the history file looks like:

# tail ~/.sqlflow_history
;

Obviously, the latter is consistent with shells.

@shendiaomo shendiaomo requested a review from weiguoz January 15, 2020 11:57
@wangkuiyi wangkuiyi merged commit fb4306d into sql-machine-learning:develop Jan 15, 2020
@shendiaomo shendiaomo deleted the fix_dup_hist branch January 15, 2020 15:55
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