Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
application/x-www-form-urlencoded is my guess. You programming language should have something (likely in a http library) to convert it to a Map.
-
Hazarth95034yNot sure about the spaces being replaced with + instead of %20 (though I've seen it around, it's pretty common, I just don't know what standard it is using)
but otherwise yep, this is just a normal URL query params format, probably coming from a data source like <form> or a js call somewhere with
Content-Type: application/x-www-form-urlencoded
which literally just dumps fields as query params.
each & separates a key=value pair
not sure about a spark dataframe, but you can literally convert it into a Json by replacing "&" with a (",") and (=) with (":")
so
Key1=Val1&Key2=Val2
turns into
Key1": "Val1", "Key2": "Val2
and then just add {" at the start and "} at the end to get
{"Key1": "Val1", "Key2": "Val2"}
and I bet there's a way to get a spark dataframe from a json these days -
Hazarth95034y@ThisIsOra ye, I noticed it. Just not personally sure why + over %20 as normal url encoding...
But that's just my inexperience with this -
Voxera115854y@Hazarth + is i think the older standard as its been around since the beginning, at least early 90s
Related Rants
-
ngrjs4My colleague unknowingly uses the word "paralyze" for "parallelize". When is the good time to correctly him? S...
-
dfox4At an expensive Apache Spark training class. For hands on portion you use their system. When everyone logged o...
-
imshubhamsingh11when you start machine learning on you laptop, and want to it take to next level, then you realize that the da...
What is this format? Spaces are separated by + sign and columns are separated by & sign and it’s value is followed by = sign. Can I directly convert it to Spark dataframe?
question
spark
kafka
dataset