假设我有两个数据集。 的 DS1: 1 b 2 c 3 d 4 e 5
DS2: 1次通过 2失败了 3通 4通 5失败
我希望获得如下输出: 一次通过 b 2失败了 c 3通过 d 4通过 e 5失败
现在我的问题是,我应该使用什么 pig 命令来获得所需的输出?
答案 0 :(得分:0)
JOIN。假设文件中的数据以制表符分隔。
usernameField = [[UITextField alloc] initWithFrame:CGRectZero];
usernameField.borderStyle = UITextBorderStyleLine;
usernameField.backgroundColor = [UIColor whiteColor];
usernameField.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:16];
usernameField.placeholder = @"username";
usernameField.autocapitalizationType = UITextAutocapitalizationTypeNone;
usernameField.autocorrectionType = UITextAutocorrectionTypeNo;
usernameField.keyboardType = UIKeyboardTypeASCIICapable;
usernameField.returnKeyType = UIReturnKeyDone;
usernameField.spellCheckingType = UITextSpellCheckingTypeNo;
usernameField.clearButtonMode = UITextFieldViewModeWhileEditing;
usernameField.textAlignment = NSTextAlignmentCenter;
usernameField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
usernameField.delegate = self;
[self.scrollview addSubview:usernameField];
passwordField = [[UITextField alloc] initWithFrame:CGRectZero];
passwordField.borderStyle = UITextBorderStyleLine;
passwordField.backgroundColor = [UIColor whiteColor];
passwordField.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:16];
passwordField.placeholder = @"password";
passwordField.autocapitalizationType = UITextAutocapitalizationTypeNone;
passwordField.autocorrectionType = UITextAutocorrectionTypeNo;
passwordField.keyboardType = UIKeyboardTypeDefault;
passwordField.returnKeyType = UIReturnKeyDone;
passwordField.spellCheckingType = UITextSpellCheckingTypeNo;
passwordField.clearButtonMode = UITextFieldViewModeNever;
passwordField.textAlignment = NSTextAlignmentCenter;
passwordField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
passwordField.clearsOnBeginEditing = YES;
passwordField.secureTextEntry = YES;
passwordField.delegate = self;
[self.scrollview addSubview:passwordField];