You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-full.test.ts.snap
+241Lines changed: 241 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1620,6 +1620,239 @@ Array [
1620
1620
]
1621
1621
`;
1622
1622
1623
+
exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Rolling Window YTD (year + month + day + date_trunc equal) 1`] =`
1624
+
Array [
1625
+
Object {
1626
+
"orderDateD": 2020-05-27T00:00:00.000Z,
1627
+
"orderDateM": 2020-05-01T00:00:00.000Z,
1628
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1629
+
"rollingCountYTD": "1",
1630
+
},
1631
+
Object {
1632
+
"orderDateD": 2020-12-04T00:00:00.000Z,
1633
+
"orderDateM": 2020-12-01T00:00:00.000Z,
1634
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1635
+
"rollingCountYTD": "1",
1636
+
},
1637
+
Object {
1638
+
"orderDateD": 2020-10-30T00:00:00.000Z,
1639
+
"orderDateM": 2020-10-01T00:00:00.000Z,
1640
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1641
+
"rollingCountYTD": "1",
1642
+
},
1643
+
Object {
1644
+
"orderDateD": 2020-11-28T00:00:00.000Z,
1645
+
"orderDateM": 2020-11-01T00:00:00.000Z,
1646
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1647
+
"rollingCountYTD": "1",
1648
+
},
1649
+
Object {
1650
+
"orderDateD": 2020-05-29T00:00:00.000Z,
1651
+
"orderDateM": 2020-05-01T00:00:00.000Z,
1652
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1653
+
"rollingCountYTD": "1",
1654
+
},
1655
+
Object {
1656
+
"orderDateD": 2020-12-25T00:00:00.000Z,
1657
+
"orderDateM": 2020-12-01T00:00:00.000Z,
1658
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1659
+
"rollingCountYTD": "1",
1660
+
},
1661
+
Object {
1662
+
"orderDateD": 2020-10-12T00:00:00.000Z,
1663
+
"orderDateM": 2020-10-01T00:00:00.000Z,
1664
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1665
+
"rollingCountYTD": "1",
1666
+
},
1667
+
Object {
1668
+
"orderDateD": 2020-10-19T00:00:00.000Z,
1669
+
"orderDateM": 2020-10-01T00:00:00.000Z,
1670
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1671
+
"rollingCountYTD": "2",
1672
+
},
1673
+
Object {
1674
+
"orderDateD": 2020-06-11T00:00:00.000Z,
1675
+
"orderDateM": 2020-06-01T00:00:00.000Z,
1676
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1677
+
"rollingCountYTD": "1",
1678
+
},
1679
+
Object {
1680
+
"orderDateD": 2020-01-01T00:00:00.000Z,
1681
+
"orderDateM": 2020-01-01T00:00:00.000Z,
1682
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1683
+
"rollingCountYTD": "1",
1684
+
},
1685
+
Object {
1686
+
"orderDateD": 2020-11-02T00:00:00.000Z,
1687
+
"orderDateM": 2020-11-01T00:00:00.000Z,
1688
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1689
+
"rollingCountYTD": "1",
1690
+
},
1691
+
Object {
1692
+
"orderDateD": 2020-03-17T00:00:00.000Z,
1693
+
"orderDateM": 2020-03-01T00:00:00.000Z,
1694
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1695
+
"rollingCountYTD": "1",
1696
+
},
1697
+
Object {
1698
+
"orderDateD": 2020-01-23T00:00:00.000Z,
1699
+
"orderDateM": 2020-01-01T00:00:00.000Z,
1700
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1701
+
"rollingCountYTD": "1",
1702
+
},
1703
+
Object {
1704
+
"orderDateD": 2020-11-11T00:00:00.000Z,
1705
+
"orderDateM": 2020-11-01T00:00:00.000Z,
1706
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1707
+
"rollingCountYTD": "1",
1708
+
},
1709
+
Object {
1710
+
"orderDateD": 2020-12-24T00:00:00.000Z,
1711
+
"orderDateM": 2020-12-01T00:00:00.000Z,
1712
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1713
+
"rollingCountYTD": "1",
1714
+
},
1715
+
Object {
1716
+
"orderDateD": 2020-05-13T00:00:00.000Z,
1717
+
"orderDateM": 2020-05-01T00:00:00.000Z,
1718
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1719
+
"rollingCountYTD": "1",
1720
+
},
1721
+
Object {
1722
+
"orderDateD": 2020-12-02T00:00:00.000Z,
1723
+
"orderDateM": 2020-12-01T00:00:00.000Z,
1724
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1725
+
"rollingCountYTD": "1",
1726
+
},
1727
+
Object {
1728
+
"orderDateD": 2020-03-26T00:00:00.000Z,
1729
+
"orderDateM": 2020-03-01T00:00:00.000Z,
1730
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1731
+
"rollingCountYTD": "1",
1732
+
},
1733
+
Object {
1734
+
"orderDateD": 2020-02-16T00:00:00.000Z,
1735
+
"orderDateM": 2020-02-01T00:00:00.000Z,
1736
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1737
+
"rollingCountYTD": "1",
1738
+
},
1739
+
Object {
1740
+
"orderDateD": 2020-06-15T00:00:00.000Z,
1741
+
"orderDateM": 2020-06-01T00:00:00.000Z,
1742
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1743
+
"rollingCountYTD": "1",
1744
+
},
1745
+
Object {
1746
+
"orderDateD": 2020-06-10T00:00:00.000Z,
1747
+
"orderDateM": 2020-06-01T00:00:00.000Z,
1748
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1749
+
"rollingCountYTD": "1",
1750
+
},
1751
+
Object {
1752
+
"orderDateD": 2020-12-14T00:00:00.000Z,
1753
+
"orderDateM": 2020-12-01T00:00:00.000Z,
1754
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1755
+
"rollingCountYTD": "2",
1756
+
},
1757
+
Object {
1758
+
"orderDateD": 2020-05-14T00:00:00.000Z,
1759
+
"orderDateM": 2020-05-01T00:00:00.000Z,
1760
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1761
+
"rollingCountYTD": "2",
1762
+
},
1763
+
Object {
1764
+
"orderDateD": 2020-09-02T00:00:00.000Z,
1765
+
"orderDateM": 2020-09-01T00:00:00.000Z,
1766
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1767
+
"rollingCountYTD": "1",
1768
+
},
1769
+
Object {
1770
+
"orderDateD": 2020-06-03T00:00:00.000Z,
1771
+
"orderDateM": 2020-06-01T00:00:00.000Z,
1772
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1773
+
"rollingCountYTD": "1",
1774
+
},
1775
+
Object {
1776
+
"orderDateD": 2020-06-17T00:00:00.000Z,
1777
+
"orderDateM": 2020-06-01T00:00:00.000Z,
1778
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1779
+
"rollingCountYTD": "1",
1780
+
},
1781
+
Object {
1782
+
"orderDateD": 2020-06-25T00:00:00.000Z,
1783
+
"orderDateM": 2020-06-01T00:00:00.000Z,
1784
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1785
+
"rollingCountYTD": "2",
1786
+
},
1787
+
Object {
1788
+
"orderDateD": 2020-04-10T00:00:00.000Z,
1789
+
"orderDateM": 2020-04-01T00:00:00.000Z,
1790
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1791
+
"rollingCountYTD": "1",
1792
+
},
1793
+
Object {
1794
+
"orderDateD": 2020-09-08T00:00:00.000Z,
1795
+
"orderDateM": 2020-09-01T00:00:00.000Z,
1796
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1797
+
"rollingCountYTD": "1",
1798
+
},
1799
+
Object {
1800
+
"orderDateD": 2020-09-01T00:00:00.000Z,
1801
+
"orderDateM": 2020-09-01T00:00:00.000Z,
1802
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1803
+
"rollingCountYTD": "1",
1804
+
},
1805
+
Object {
1806
+
"orderDateD": 2020-12-01T00:00:00.000Z,
1807
+
"orderDateM": 2020-12-01T00:00:00.000Z,
1808
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1809
+
"rollingCountYTD": "1",
1810
+
},
1811
+
Object {
1812
+
"orderDateD": 2020-11-12T00:00:00.000Z,
1813
+
"orderDateM": 2020-11-01T00:00:00.000Z,
1814
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1815
+
"rollingCountYTD": "1",
1816
+
},
1817
+
Object {
1818
+
"orderDateD": 2020-11-06T00:00:00.000Z,
1819
+
"orderDateM": 2020-11-01T00:00:00.000Z,
1820
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1821
+
"rollingCountYTD": "1",
1822
+
},
1823
+
Object {
1824
+
"orderDateD": 2020-11-21T00:00:00.000Z,
1825
+
"orderDateM": 2020-11-01T00:00:00.000Z,
1826
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1827
+
"rollingCountYTD": "1",
1828
+
},
1829
+
Object {
1830
+
"orderDateD": 2020-09-23T00:00:00.000Z,
1831
+
"orderDateM": 2020-09-01T00:00:00.000Z,
1832
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1833
+
"rollingCountYTD": "1",
1834
+
},
1835
+
Object {
1836
+
"orderDateD": 2020-09-17T00:00:00.000Z,
1837
+
"orderDateM": 2020-09-01T00:00:00.000Z,
1838
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1839
+
"rollingCountYTD": "2",
1840
+
},
1841
+
Object {
1842
+
"orderDateD": 2020-11-05T00:00:00.000Z,
1843
+
"orderDateM": 2020-11-01T00:00:00.000Z,
1844
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1845
+
"rollingCountYTD": "1",
1846
+
},
1847
+
Object {
1848
+
"orderDateD": 2020-11-16T00:00:00.000Z,
1849
+
"orderDateM": 2020-11-01T00:00:00.000Z,
1850
+
"orderDateY": 2020-01-01T00:00:00.000Z,
1851
+
"rollingCountYTD": "2",
1852
+
},
1853
+
]
1854
+
`;
1855
+
1623
1856
exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Timeshift measure from cube 1`] =`
1624
1857
Array [
1625
1858
Object {
@@ -4444,6 +4677,14 @@ Array [
4444
4677
]
4445
4678
`;
4446
4679
4680
+
exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 querying BigECommerce: rolling window YTD without granularity 1`] =`
4681
+
Array [
4682
+
Object {
4683
+
"BigECommerce.rollingCountYTD": "44",
4684
+
},
4685
+
]
4686
+
`;
4687
+
4447
4688
exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 querying BigECommerce: totalProfitYearAgo 1`] =`Array []`;
4448
4689
4449
4690
exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 querying Customers: dimensions + limit 1`] =`
0 commit comments