Skip to content

Instantly share code, notes, and snippets.

@neuecc
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neuecc/95326b145ef7de99842b to your computer and use it in GitHub Desktop.
Save neuecc/95326b145ef7de99842b to your computer and use it in GitHub Desktop.
LINQ to BigQuery's concept
LINQ to BigQuery's concept and mention of following tree.
https://github.com/neuecc/LINQ-to-BigQuery
https://twitter.com/headinthebox/status/539169524999012354
IQueryable isn't necessary for LINQ to translate SQL.
I need all BigQuery's sql can write LINQ to BigQuery.
All specialized sql can execute, all function can execute(include window function).
(BigQuery's SQL different with standard Sql https://developers.google.com/bigquery/query-reference
I must support Multiple FROM, WITHIN, JOIN EACH, GROUP EACH BY, FLATTEN, IGNORECASE, etc)
Therefore control order, protect runtime error, satisfy all syntax.
"IQueryable is all database's abastraction" is fantasy,
LINQ needs specialized each Database.
(But LINQ to Xxx needs LINQ's atmosphere
filter as Where, projection as Select, order as OrderBy/ThenBy, like convention over configuration)
I think "IQueryable is dead, Long live Expression".
Of course Expression Tree has performance issue, I don't use LINQ for RDBMS(I use Dapper).
But execute BigQuery is very expensive so LINQ to BigQuery can ignore cost of Experssion relatively.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment