Skip to content

Instantly share code, notes, and snippets.

View yaooqinn's full-sized avatar
🎉
On vacation

Kent Yao yaooqinn

🎉
On vacation
View GitHub Profile
@yaooqinn
yaooqinn / tpcds.sql
Created April 7, 2021 15:31
tpcds.sql
--
-- Legal Notice
--
-- This document and associated source code (the "Work") is a part of a
-- benchmark specification maintained by the TPC.
--
-- The TPC reserves all right, title, and interest to the Work as provided
-- under U.S. and international laws, including without limitation all patent
-- and trademark rights therein.
--
echo 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free' > /etc/apt/sources.list && \
@yaooqinn
yaooqinn / SPARK-31189.html
Created March 19, 2020 07:51
SPARK-31189
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Datetime patterns - Spark 3.1.0 Documentation</title>
@yaooqinn
yaooqinn / spark-rm.Dockerfile
Last active March 3, 2020 06:54
China friendly spark docker image file for building and releasing a spark distirbution
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
spark-sql> select * from default.src;
15	val_15
17	val_17
0	val_0
4	val_4
12	val_12
8	val_8
0	val_0
0	val_0