• 数字类型
    • ByteType:代表一个字节的整数。范围是-128到127
    • ShortType:代表两个字节的整数。范围是-32768到32767
    • IntegerType:代表4个字节的整数。范围是-2147483648到2147483647
    • LongType:代表8个字节的整数。范围是-9223372036854775808到9223372036854775807
    • FloatType:代表4字节的单精度浮点数
    • DoubleType:代表8字节的双精度浮点数
    • DecimalType:代表任意精度的10进制数据。通过内部的java.math.BigDecimal支持。BigDecimal由一个任意精度的整型非标度值和一个32位整数组成
  • StringType:代表一个字符串值
  • BinaryType:代表一个byte序列值
  • BooleanType:代表boolean值
  • Datetime类型
    • TimestampType:代表包含字段年,月,日,时,分,秒的值
    • DateType:代表包含字段年,月,日的值
  • 复杂类型
    • ArrayType(elementType, containsNull):代表由elementType类型元素组成的序列值。containsNull用来指明ArrayType中的值是否有null值
    • MapType(keyType, valueType, valueContainsNull):表示包括一组键 – 值对的值。通过keyType表示key数据的类型,通过valueType表示value数据的类型。valueContainsNull用来指明MapType中的值是否有null值
    • StructType(fields):表示一个拥有StructFields (fields)序列结构的值
      • StructField(name, dataType, nullable):代表StructType中的一个字段,字段的名字通过name指定,dataType指定field的数据类型,nullable表示字段的值是否有null值。
Tagged on:

15条回应:“Spark SQL数据类型”

  1. javsearch.mobi说道:

    javsearch.mobi

    javsearch.mobi

  2. nike letter long sleeve shirt sweater pants sweatpants set two piece sportswear

    hologram lace up bodysuitblack nike sb bomber jacketchampion super hoodnew york supreme sweatshirt

  3. adidas performance boys crazylight boost low 16 j skate shoe ray

    wex mens western blue brown plaid shirt gass horse supplycanterbury phoenix 2.0 sg junior rugby boots 4.5saucony omni 15 ladies running shoes grey start fitnesssell fila red athletic shoes for men 10 mens us shoe size ebay

  4. jordan 11 velvet说道:

    jordan 11 velvet

    with more cushioning than ever the classic alpargatas are a must have for your spring wardrobe featuring a denim upper the easy slip on style goes withconfused about which pair to buy here are my best tips for making a good decisionclick to popout clot…

  5. item 2 puma enzo strap knit wns black white women running shoes sneakers 19003 2 puma enzo strap knit wns black white women running shoes sneakers 19003

    men puma suede classic plus mens trainers black white 117097 mennew kids girls boys longsleeve plain fleece zip up unisex warmconverse all star chuck taylor toddler hot pink black mid hi topskechers mens relaxed fit larson nerick dark brown leather tra…

  6. air jordan 09 black varsity red stealth jordans for sale outlet

    jordan human hair wig for toddler doll kits in dark brown irresistablesair jordan 17 low bibby jordan 303891 151 white varsityvehoot cl茅 usb dessin de air jordan x 11 16 go m茅moire flash drivereview jordan 13 low brave blue youtube

  7. girl jordan 11s snake print the centre for contemporary history

    nice kicks nike kobe 4 mens the olympic black silver basketball shoe lastestthe jordan ultimate gift of flight pack features the newest air jordan and one of the best air jordans ever celebrating performance innovation and legendjordan jumpman brushed…

  8. scarpe vans milton hi vn0187fm4 uomo sneakers sportive alte pelle blu nuovo

    maxi echarpe et plaid petit budget au luxe basics copolo femme flag big pony hoodie rougepas cher alexander mcqueen robe intarsia 茅vas茅e robes en maille femmescowboy indien 6 7 ans western chasse au tr茅sor anniversaire denfant

  9. fandei 2017 running shoes for women breathable mesh sport shoes women sneakers woman 2017 zapatillas hombre

    uk trainers luke 1997 tracksuituk trainers red sparkly converse crystal pearl pinterest.comuk trainers pre owned louis vuitton bagsuk trainers roshe two black diamond etsy.com

  10. annonce hugo boss homme 3er pack boxer

    acquista 2 off qualsiasi new balance 980 uomo giallo case e ottienistivaletti da uomo in vera pelle batascarpe n. 36 uk 3scarpe nike 2016 scarpe tennis nike tennis classic ac ht laser

  11. hugo boss paule pro golf polo

    dkny willah ankle boot light taupe beige womeneastpak authentic transfer medium wheeled duffle bagneosport 5 mm hard sole boot sports outdoorshugo boss mens rayadv dark grey knit look trainers sneakers shoes sz 9

  12. pepe jeans pixie jeans f眉r damen blau 92 baumwolle

    贸culos de sol carrera 5001 feminino pr victoria store贸culos solar sol mormaii carmel preto espelhado dourado. carregandot锚nis masculino low profile sport lacoste branco shop2getherbota 7 leguas preta c l ca 737

  13. 贸culos oakley frogskins matte clear lente saphire iridium r 499

    dididd hat ms. tocado de oto帽o e invierno boda fotograf铆a de la boda linogorras planas por mayoreo que digan mala ropa3 zapatillas adidas en oferta para esta navidadgorra de verano para mujer sombrero sombrero outdoor informal de playa para el sol somb…

  14. air huarache run ultra glitterkick pinterest.com

    womens nike lite run 3womens key chain holder amazonwomens iphone se glitter phone casenike huarache white sale wanelo.co

  15. paul smith rainbow sole brogues farfetch

    2014 new brand luxury rhinestone women fashion leather strap quartzchristian dior top black velvet buttoned discount 83 micoletcomfortable paul smith shirt navy ps by heart print voile in men shirts menspatek philippe nautilus 40mm stainless steel blue…