- api-change:
mediastore
: Update mediastore command to latest version - api-change:
appstream
: Update appstream command to latest version
go-shellquote
hubで使われているやつ。文字列をシェルのルールで区切るっぽい
hub v2.12.1
- プルリクでクラッシュするのを回避
- BROWSER変数で開くブラウザを指定
hub help
でman
をサポート-a
とか-l
とかで複数指定するときにスペースをあけないhub pull-request: Avoid crash when the current branch is pushed to a non-GitHub remote
- BROWSER environment variable now supports values with spaces in them (must be shell-quoted)
- hub help: support man appearing in a path that has spaces
- Docs: mention that comma-separated lists must not have spaces
awscli 1.16.191
- api-change:
organizations
: Update organizations command to latest version - api-change:
docdb
: Update docdb command to latest version - api-change:
ec2
: Update ec2 command to latest version - api-change:
rds
: Update rds command to latest version
hub v2.12.1
まだリリースノート的なのは出てない
awscli 1.16.190
APIアップデート
- api-change:
ec2
: Update ec2 command to latest version - api-change:
redshift
: Update redshift command to latest version - api-change:
alexaforbusiness
: Update alexaforbusiness command to latest version - api-change:
workspaces
: Update workspaces command to latest version
Presto date_formatでGENERIC_INTERNAL_ERROR: String index out of range 続き
Presto date_formatでGENERIC_INTERNAL_ERROR: String index out of range
この話の続き。jodaは使われているには使われているけどフォーマットを生成するのにループで取り回してる。でもバイト数でループするもんだから、'%Y年%m月%d日'
みたいな書き方をするとバイト数と文字数が一致しなくなるのでループのところで死ぬ。presto-cliなどではdebugオプションで分かるけどAthenaじゃそんなオプションはない。
Issueにコメントしましたが、バイト数でループを回しながらcharAtで各文字をとってるので余分にループが回っている状態ですね。
— Yuya Ebihara (@ebyhr) June 28, 2019
正確にはjodaのDateTimeFormatterBuilderが使われているのですが、そのフォーマットを生成するのにループで回して取り出しています。Athenaは全然詳しく無いのですがdebugログ出してくれないのはこういうとき辛いですね...。
— Yuya Ebihara (@ebyhr) June 28, 2019
バグです。ありがとうございました。たぶん週末までには取り込まれることでしょう。それでもこれが直っているのをAthenaで拝められるのはどのくらい先だろうな……
Presto date_formatでGENERIC_INTERNAL_ERROR: String index out of range
SELECT DATE_FORMAT(now() AT TIME ZONE 'Asia/Tokyo', '%Y年%m月%d日')
こんなクエリを投げると、GENERIC_INTERNAL_ERROR: String index out of range: 9
って返ってくる。詳細なエラーはない。本当にこれだけ。まあdate_format関数のフォーマット書式に日本語が入っているのが駄目なんだろうけど。
期待薄だけどissueは投げた
Prestoのフォーマットのパースにはjodaを使っているようだから2.10.2と2.4で試したけど、jodaのforPatternは日本語には対応しているから、jodaが原因ではないようなんだよな、わからないけど。
scala> import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormat scala> DateTimeFormat.forPattern("yyyy年MM月dd日") res0: org.joda.time.format.DateTimeFormatter = org.joda.time.format.DateTimeFormatter@65f6c623 scala> DateTimeFormat.forPattern("yyyy年MM月dd日").parseDateTime("2011年10月31日") res1: org.joda.time.DateTime = 2011-10-31T00:00:00.000+09:00
awscli 1.16.188
- api-change:
dynamodb
: Update dynamodb command to latest version
Query exhausted resources at this scale factor対策
- クエリの実行ちょっと待て
- Athenaベストプラクティス読んで実行しろ
- カラムナ使え
awscli 1.16.185
APIのアップデート
- api-change:
apigateway
: Update apigateway command to latest version - api-change:
ssm
: Update ssm command to latest version - api-change:
apigatewayv2
: Update apigatewayv2 command to latest version - api-change:
elbv2
: Update elbv2 command to latest version - api-change:
application-insights
: Update application-insights command to latest version - api-change:
fsx
: Update fsx command to latest version - api-change:
service-quotas
: Update service-quotas command to latest version - api-change:
resourcegroupstaggingapi
: Update resourcegroupstaggingapi command to latest version - api-change:
securityhub
: Update securityhub command to latest version
curlのexit codeの一覧
curlのexit codeの一覧。CURLE_READ_ERROR(26)だと、 ファイルデータをcurlで送るときに、ファイルが読めませんでした 的な怒られ。
PyGitHub get_issues
Issueの情報を取得する。sinceがあってuntilがないのは、公式のAPIにuntilがないから。あとsinceは更新日時基準。
Repository — PyGithub 1.43.7 documentation
Issues | GitHub Developer Guide
GITHUB_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" g = Github(GITHUB_TOKEN) repo = g.get_organization("user_org").get_repo("user_repo") issues = repo.get_issues(assignee="user_name", state="closed", labels=[repo.get_label(name="ラベル")])
Ubuntu 19.04 メモ
- Ubuntu 19.04 は2020年1月までの9ヶ月間サポート
- do-release-upgradeなど