Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Dec 10, 2021

Description

  • Added type timestamp to SQLGetTypeInfo
  • Modified a test to include changes

Issues Resolved

https://github.com/opensearch-project/sql/issues/317

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ghost ghost requested review from Yury-Fridlyand, kylepbit and raymond-lum December 10, 2021 17:33
{OPENSEARCH_TYPE_NAME_KEYWORD, SQL_WVARCHAR},
{OPENSEARCH_TYPE_NAME_TEXT, SQL_WVARCHAR},
{OPENSEARCH_TYPE_NAME_DATE, SQL_TYPE_TIMESTAMP},
{OPENSEARCH_TYPE_NAME_TIMESTAMP, SQL_TYPE_TIMESTAMP},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you keep the date mapping to timestamp here as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I've reverted it back.

case SQL_TYPE_TIME:
case SQL_TYPE_TIMESTAMP:
return SQL_DATETIME;
return SQL_TYPE_TIMESTAMP;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure this is correct, I believe SQL_DATETIME is the correct return here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has be reverted in 1817773

Guian Gumpac added 2 commits December 10, 2021 10:41
@ghost ghost requested a review from kylepbit December 10, 2021 18:43
@ghost ghost merged commit bbeed55 into powerbi-main Dec 14, 2021
matthewryanwells pushed a commit that referenced this pull request Aug 17, 2023
…pensearch-project#1975)

* Dev/sl google java format15 (#341)

* Spotless apply on 'datasources/**/*.java',
                                      'core/**/*.java',
                                      'docs/**/*.java',
                                      'doctest/**/*.java',
                                      'relase-notes/**/*.java',
                                      'spark/**/*.java'

Signed-off-by: Mitchell Gale <[email protected]>

* Added more directories to build.gradle

Signed-off-by: Mitchell Gale <[email protected]>

* spotless apply for plugin.

Signed-off-by: Mitchell Gale <[email protected]>

* Adding checkstyle ignorefailures.

Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>

* added missing semi colon.

Signed-off-by: Mitchell Gale <[email protected]>

* Update build.gradle

Co-authored-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>

* Update build.gradle

Signed-off-by: Mitchell Gale <[email protected]>

* Update build.gradle

Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Co-authored-by: Yury-Fridlyand <[email protected]>
MitchellGale added a commit that referenced this pull request Aug 22, 2023
…pensearch-project#1975)

* Dev/sl google java format15 (#341)

* Spotless apply on 'datasources/**/*.java',
                                      'core/**/*.java',
                                      'docs/**/*.java',
                                      'doctest/**/*.java',
                                      'relase-notes/**/*.java',
                                      'spark/**/*.java'

Signed-off-by: Mitchell Gale <[email protected]>

* Added more directories to build.gradle

Signed-off-by: Mitchell Gale <[email protected]>

* spotless apply for plugin.

Signed-off-by: Mitchell Gale <[email protected]>

* Adding checkstyle ignorefailures.

Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>

* added missing semi colon.

Signed-off-by: Mitchell Gale <[email protected]>

* Update build.gradle

Co-authored-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>

* Update build.gradle

Signed-off-by: Mitchell Gale <[email protected]>

* Update build.gradle

Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Co-authored-by: Yury-Fridlyand <[email protected]>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant