Is there a way to split the variable in different columnsHow do you split a list into evenly sized chunks?Getting the last element of a split string arrayHow to split a string into a list?How do I split a string on a delimiter in Bash?Split Strings into words with multiple word boundary delimitersTo switch from vertical split to horizontal split fast in VimEasiest way to split a string on newlines in .NET?Split a string by another string in C#Split a String into an array in Swift?Splitting data into multiple columns in Hive
Golden Guardian removed before death related trigger
How can Paypal know my card is being used in another account?
8086 stack segment and avoiding overflow in interrupts
What is an Accessible Word?
Is there an antonym(a complementary antonym) for "spicy" or "hot" regarding food (I DO NOT mean "seasoned" but "hot")?
How to have poached eggs in "sphere form"?
Convert graph format for Mathematica graph functions
Why is the Apollo LEM ladder so far from the ground?
Can a US President, after impeachment and removal, be re-elected or re-appointed?
What language is Raven using for her attack in the new 52?
Why would a personal invisible shield be necessary?
Why are we moving in circles with a tandem kayak?
Exploiting the delay when a festival ticket is scanned
Why did I lose on time with 3 pawns vs Knight. Shouldn't it be a draw?
What is more environmentally friendly? An A320 or a car?
Why did Windows 95 crash the whole system but newer Windows only crashed programs?
Why would anyone ever invest in a cash-only etf?
How many oliphaunts died in all of the Lord of the Rings battles?
Can this party play the Lost Mine of Phandelver adventure without too much trouble?
GNU sort stable sort when sort does not know sort order
Scam? Checks via Email
Why is it "on the inside" and not "in the inside"?
Nested FPifeq : Extra fi error
Semen retention is a important thing in Martial arts?
Is there a way to split the variable in different columns
How do you split a list into evenly sized chunks?Getting the last element of a split string arrayHow to split a string into a list?How do I split a string on a delimiter in Bash?Split Strings into words with multiple word boundary delimitersTo switch from vertical split to horizontal split fast in VimEasiest way to split a string on newlines in .NET?Split a string by another string in C#Split a String into an array in Swift?Splitting data into multiple columns in Hive
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Need help to split the variable in different columns.
The variable has 3 inputs separated by the symbol pipe '|'
The size of the input varies.
Using query : split(x, '|') [0] as abc, split(x, '|') [1] as bcd,
Input field x = 234324234|4873264962
Required output:
column 1: abc 234324234
column 2: bcd 4873264962
split hive multiple-columns
add a comment |
Need help to split the variable in different columns.
The variable has 3 inputs separated by the symbol pipe '|'
The size of the input varies.
Using query : split(x, '|') [0] as abc, split(x, '|') [1] as bcd,
Input field x = 234324234|4873264962
Required output:
column 1: abc 234324234
column 2: bcd 4873264962
split hive multiple-columns
add a comment |
Need help to split the variable in different columns.
The variable has 3 inputs separated by the symbol pipe '|'
The size of the input varies.
Using query : split(x, '|') [0] as abc, split(x, '|') [1] as bcd,
Input field x = 234324234|4873264962
Required output:
column 1: abc 234324234
column 2: bcd 4873264962
split hive multiple-columns
Need help to split the variable in different columns.
The variable has 3 inputs separated by the symbol pipe '|'
The size of the input varies.
Using query : split(x, '|') [0] as abc, split(x, '|') [1] as bcd,
Input field x = 234324234|4873264962
Required output:
column 1: abc 234324234
column 2: bcd 4873264962
split hive multiple-columns
split hive multiple-columns
edited Mar 27 at 1:13
Amit Vujic
6881 gold badge13 silver badges23 bronze badges
6881 gold badge13 silver badges23 bronze badges
asked Mar 26 at 20:22
RitzRitz
61 bronze badge
61 bronze badge
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
InputField x: 234324234|4873264962
select split(x, '\|') [0] as col1, split(x, '\|') [1] as col2, split(x, '\|') [2] as col3 from table.
col1 col2 col3
234324234 4873264962 NULL
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55365642%2fis-there-a-way-to-split-the-variable-in-different-columns%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
InputField x: 234324234|4873264962
select split(x, '\|') [0] as col1, split(x, '\|') [1] as col2, split(x, '\|') [2] as col3 from table.
col1 col2 col3
234324234 4873264962 NULL
add a comment |
InputField x: 234324234|4873264962
select split(x, '\|') [0] as col1, split(x, '\|') [1] as col2, split(x, '\|') [2] as col3 from table.
col1 col2 col3
234324234 4873264962 NULL
add a comment |
InputField x: 234324234|4873264962
select split(x, '\|') [0] as col1, split(x, '\|') [1] as col2, split(x, '\|') [2] as col3 from table.
col1 col2 col3
234324234 4873264962 NULL
InputField x: 234324234|4873264962
select split(x, '\|') [0] as col1, split(x, '\|') [1] as col2, split(x, '\|') [2] as col3 from table.
col1 col2 col3
234324234 4873264962 NULL
answered Mar 26 at 21:20
rightjoinrightjoin
788 bronze badges
788 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55365642%2fis-there-a-way-to-split-the-variable-in-different-columns%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown