Coder Social home page Coder Social logo

hake's People

Contributors

sinmetal avatar tenntenn avatar vvakame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hake's Issues

headerは一度だけ出力したい

WHAT

header=trueの場合、Writerとしては一度だけheaderを出力し、2回目以降は出力しないようにする

WHY

hake/writer.go

Line 39 in fbb3ad1

// Example with csv.Writer:
通りに書くと headerをONにしている場合、毎行 headerが出力される

Generic Column Value to CSV

WHAT

  • Generic Column Valueを利用して、クエリの結果をCSVにする
  • structやarray はCSVにできないので、考慮しないで良い

WHY

任意のクエリの結果をCSV出力したい。

int64データをstringにしていない

JSONに 72057596404714278 みたいなデータが含まれているとJavaScriptで評価した時に 72057596404714270 になってしまい数値が正しくなくなってしまう。

Resultのカラム名が重複している場合、エラーになるケースが有る

WHAT

Spannerでは以下のクエリはValidである

SELECT T1.Id, T2.Id  FROM (SELECT Id From Tweet ORDER BY Id Limit 100) T1 JOIN (SELECT Id From Tweet ORDER By Id Limit 100) T2 ON T1.Id = T2.Id

結果としては、SELECTで指定した順番で表示される

image

しかし、hakeを利用すると、 spanner: code = "FailedPrecondition", desc = "ambiguous column name \"hoge\"" になるケースが存在する

おそらく、Jsonに変換するところで、JsonのKeyがぶつかってしまっている。

CI何か設定する

今master/HEADで go test ./... するとテストコケる気がします。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.