Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upcoming into main for Hyper API October 2023 Release #62

Merged
merged 8 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '20.5'
node-version: '20.8'
cache: yarn
cache-dependency-path: |
main/website/yarn.lock
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/proof.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '20.5'
node-version: '20.8'
cache: yarn
cache-dependency-path: 'website/yarn.lock'

Expand Down
9 changes: 9 additions & 0 deletions website/docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ In case you are wondering why all our releases start with `0.0`, read [this FAQ

:::


### 0.0.17971 [October 9th, 2023]

* .Net Deprecation: As announced last release, we are deprecating the .NET version of Hyper API. We decided to [open-source its source code](https://github.com/tableau/hyper-api-dotnet), so whoever might be interested in maintaining it can pick up where we left.
* Some of the [Fiscal Calendar Options](/docs/sql/scalar_func/datetime#fiscal-calendar-options) are renamed:
* `start_month` is renamed to `fiscal_year_start_month`.
* `first_day_of_week` is renamed to `first_day_of_fiscal_week`.
* The [EXTRACT](/docs/sql/scalar_func/datetime#datetime-extract) function was accepting (and ignoring) named arguments that were not required. Now it only accepts [Fiscal Calendar Options](/docs/sql/scalar_func/datetime#fiscal-calendar-options) when fiscal function fields are used. A named argument that is not required by the [EXTRACT](/docs/sql/scalar_func/datetime#datetime-extract) function will be rejected.

### 0.0.17782 [September 6nd, 2023]

* Sharing a Hyper process between multiple programs is now supported. This allows for better resource management and performance if multiple programs that interact with Hyper run at the same time. See [HyperProcess: Performance Best Practices](/docs/hyper-api/hyper_process#performance).
Expand Down
10 changes: 5 additions & 5 deletions website/docs/sql/scalar_func/datetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ Examples (assuming the local time zone is `America/New_York`):
SELECT date_trunc('day', TIMESTAMP WITH TIME ZONE '2001-02-16 20:38:40+00');
Result: 2001-02-16 00:00:00-05

SELECT date_trunc('fiscal_year', TIMESTAMP '2001-02-16 20:38:40', start_month => 2, use_start_date_as_fiscal_year_name => false);
SELECT date_trunc('fiscal_year', TIMESTAMP '2001-02-16 20:38:40', fiscal_year_start_month => 2);
Result: 2001-02-01 00:00:00

## Current Date/Time {#datetime-current}
Expand Down Expand Up @@ -552,11 +552,11 @@ fiscal_year

The following fiscal calendar options are available:

`start_month => <value>`
`fiscal_year_start_month => <value>`
: The month in which the fiscal year starts. If the fiscal year starts
in February, `<value>` should be `2`. The default value is `1` (January).

`first_day_of_week => <value>`
`first_day_of_fiscal_week => <value>`
: The first day of the fiscal week. If the fiscal year starts with
January, and `<value>` is `1` (Monday), `fiscal_week` on date
(timestamp) `2023-01-02` will return `2`, since `2023-01-01` is a
Expand All @@ -571,10 +571,10 @@ The following fiscal calendar options are available:

Some examples:

SELECT EXTRACT(fiscal_week FROM timestamp '2000-01-02 20:38:40', first_day_of_week => 7);
SELECT EXTRACT(fiscal_week FROM timestamp '2000-01-02 20:38:40', first_day_of_fiscal_week => 7);
Result: 2

SELECT EXTRACT(fiscal_year FROM timestamp '2000-02-16 20:38:40', start_month => 3);
SELECT EXTRACT(fiscal_year FROM timestamp '2000-02-16 20:38:40', fiscal_year_start_month => 3);
Result: 1999

SELECT EXTRACT(fiscal_year FROM timestamp '2000-02-16 20:38:40', use_start_date_as_fiscal_year_name => false);
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
]
},
"engines": {
"node": ">=16.14"
"node": ">=20.8"
}
}
2 changes: 1 addition & 1 deletion website/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const version_long = '0.0.17782.r044377f2';
const version_long = '0.0.17971.r09b6da92';
const version_short = version_long.substr(0, version_long.lastIndexOf('.'));

const downloadBaseUrl = 'https://downloads.tableau.com/tssoftware/';
Expand Down