Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Mar 05, 2020
  2. Feb 19, 2020
  3. Jan 14, 2020
  4. Jan 09, 2020
  5. Dec 11, 2019
  6. Dec 03, 2019
  7. Nov 19, 2019
  8. Nov 13, 2019
  9. Oct 22, 2019
  10. Oct 16, 2019
    • Cam Saul's avatar
      Timezone fixes (#11081) · 18da2fe5
      Cam Saul authored
      *  Make sure report timezone is taken into account when converting bucketed datetime filter clauses to ranges
      *  Properly handle results for H2 and Oracle TIMESTAMP WITH TIME ZONE columns and SQL Server DATETIMEOFFSET columns
      *  Enable timezone tests for all DBs; failing ones disabled for now
      
      Test improvements: 
      
      *  with-temporary-setting-values macro will now throw an Exception if passed an incorrect number of args in binding form
      *  Rework Oracle test extensions to use Oracle's wacky INSERT ALL syntax to load all rows for a test dataset at once. Oracle tests 10x faster 
      *  Rework timezone tests to be more idiomatic and readable
      *  Test fixes to make sure various drivers can properly load test data with timezone-aware columns
      *  A few fixes for test utility functions, including making sure the dataset macro works properly when used at the top-level of a test with multiple drivers
      *  Fix the random Vertica test failures by adding retry logic when loading data fails
      *  Other code cleanup
      Unverified
      18da2fe5
  11. Oct 07, 2019
  12. Sep 27, 2019
    • Cam Saul's avatar
      Optimize datetime filters! (#10980) · ceddd03e
      Cam Saul authored
      The biggest performance improvement in history of Metabase since we switched to Clojure
      
      Before when filtering by a "bucketed" datetime field we would wrap the field and the value(s) it was being compared against in casting/truncation functions. For example when compiling a query to find fields where month is September 2019, we previously generated SQL like this:
      
      ```sql
      SELECT count(*)
      FROM public.checkins
      WHERE date_trunc('month', CAST(public.checkins.date AS timestamp)) 
          = CAST(timestamp '2019-09-01T00:00:00Z' AS date)
      ```
      
      As mentioned in #4043, this is not good for performance! Metabase now generates logically equivalent SQL like
      
      ```sql
      SELECT count(*)
      FROM public.checkins 
      WHERE (
          public.checkins.date >= timestamp '2019-09-01T00:00:00Z' AND
          public.checkins.date < timestamp '2019-10-01T00:00:00Z'
      )
      ```
      
      Fixes #4043
      Fixes #11009 
      Fixes #11010
      Fixes #11011 
      Fixes #11012
      Fixes #11013
      
      :open_mouth: :race_car: 
      Unverified
      ceddd03e
  13. Sep 20, 2019
  14. Sep 19, 2019
  15. Sep 11, 2019
  16. Aug 28, 2019
  17. Aug 26, 2019
  18. Aug 21, 2019
  19. Jun 14, 2019
    • Octavian Geagla's avatar
      Connects to Mongo (#10130) · 72d194f5
      Octavian Geagla authored
      * [mongo][ci mongo] use connection string to connect to mongo
      
      * [ci mongo][style]
      
      * [style][ci mongo]
      
      * [style][ci mongo]
      
      * [test] app and test runners wip
      
      * [test] test runners wip
      
      * [mongo][ci mongo] pass in conn opts from ui
      
      * [mongo][ci mongo] test
      
      * [test]
      
      * [style] rm test file
      
      * [mongo][ci mongo] use authdb if provided
      
      * [ci mongo] add domain to hostname for dns-srv to work with localhost testing
      
      * [ci mongo]
      
      * [ci mongo] line len
      
      * [ci mongo] actually use fqdn
      
      * [ci mongo] lint
      
      * [ci mongo] swap protocol depending on if host is fqdn
      
      * [ci mongo] lint
      
      * [ci mongo] fallback to non-srv
      
      * [ci mongo] util fns are private
      
      * [ci mongo] lint
      
      * [ci mongo] inline
      
      * [ci mongo] docstrings
      
      * [ci mongo][test] basic tests for mongo conn options, wip
      
      * [ci mongo][test] tests for mongo conn options, wip
      
      * [ci mongo][i18n] exception string
      
      * [ci mongo][style] refactor
      
      * [ci mongo][style] refactor
      
      * [ci mongo][style]
      
      * [ci mongo][docs]
      
      * [ci mongo] fqdn? true if >= 2 '.'s in hostname
      
      * [ci mongo][srv?] srv toggle in mongo connection UI
      
      * [ci mongo] doc
      
      * [ci mongo] doc
      
      * [ci mongo][ui] srv toggle works
      Unverified
      72d194f5
Loading