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

feat(datestrings): Allow string dates, closes #1765 #1916

Closed
wants to merge 3 commits into from
Closed

feat(datestrings): Allow string dates, closes #1765 #1916

wants to merge 3 commits into from

Conversation

dark0dave
Copy link
Contributor

Closes #1765

Signed-off-by: dark0dave [email protected]

@dark0dave dark0dave requested review from a team and aribray December 22, 2022 03:19
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Dec 22, 2022
@dark0dave dark0dave requested a review from a team as a code owner December 22, 2022 04:33
@dark0dave dark0dave changed the title Draft: feat(datestrings): Allow string dates, closes #1765 feat(datestrings): Allow string dates, closes #1765 Dec 22, 2022
@dark0dave
Copy link
Contributor Author

@ismailsimsek will this do?

@ismailsimsek
Copy link

@dark0dave it looks good to me +1

@dark0dave
Copy link
Contributor Author

Should be ready now. Apologies, its the holiday season.

@dark0dave
Copy link
Contributor Author

@ismailsimsek let me know if you need any other types for dates to be added. Longs/shorts/floats etc.

@dark0dave
Copy link
Contributor Author

@aribray this is ready for review please :), thank you.

@Neenu1995 Neenu1995 added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jan 4, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 4, 2023
@yoshi-kokoro yoshi-kokoro removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 4, 2023
@@ -710,6 +716,12 @@ private static void fillRepeatedField(
}
break;
case STRING:
if (fieldSchema != null && fieldSchema.getType() == TableFieldSchema.Type.DATE) {
if (val instanceof String) {
protoMsg.setField(fieldDescriptor, (String) val);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be repeated field?

TestDate.newBuilder()
.setTestString(18935)
.setTestLong(18935)
.setTestIsoString("1999-01-01")
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a test for repeated field.

@ismailsimsek
Copy link

is there any update on this feature?

@yirutang
Copy link
Contributor

is there any update on this feature?

Waiting for the owner to address review feedbacks? If I didn't hear him for a week, I will submit a patched PR.

@dark0dave dark0dave requested a review from a team as a code owner January 2, 2024 22:41
@dark0dave dark0dave requested review from obada-ab and removed request for aribray January 2, 2024 22:41
@dark0dave dark0dave closed this by deleting the head repository Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JsonStreamWriter Support ISO Date String
5 participants