Skip to content

Conversation

yoavcloud
Copy link
Contributor

No description provided.

Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

Thanks @yoavcloud! Left some minor comments, otherwise this looks good to me!

@@ -9569,12 +9584,40 @@ impl<'a> Parser<'a> {
}
opts
}),
Some(Keyword::DATEFORMAT) => {
let _ = self.parse_keyword(Keyword::AS); // [ AS ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let _ = self.parse_keyword(Keyword::AS); // [ AS ]
let _ = self.parse_keyword(Keyword::AS);

CopyLegacyOption::DateFormat(fmt)
}
Some(Keyword::DELIMITER) => {
let _ = self.parse_keyword(Keyword::AS); // [ AS ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let _ = self.parse_keyword(Keyword::AS); // [ AS ]
let _ = self.parse_keyword(Keyword::AS);

Some(Keyword::IAM_ROLE) => CopyLegacyOption::IamRole(self.parse_iam_role_kind()?),
Some(Keyword::IGNOREHEADER) => {
let _ = self.parse_keyword(Keyword::AS);
let num_rows = self.parse_literal_uint()?;
CopyLegacyOption::IgnoreHeader(num_rows)
}
Some(Keyword::NULL) => {
let _ = self.parse_keyword(Keyword::AS); // [ AS ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let _ = self.parse_keyword(Keyword::AS); // [ AS ]
let _ = self.parse_keyword(Keyword::AS);

CopyLegacyOption::Null(self.parse_literal_string()?)
}
Some(Keyword::TIMEFORMAT) => {
let _ = self.parse_keyword(Keyword::AS); // [ AS ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let _ = self.parse_keyword(Keyword::AS); // [ AS ]
let _ = self.parse_keyword(Keyword::AS);

@yoavcloud yoavcloud requested a review from iffyio August 21, 2025 16:13
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @yoavcloud!
cc @alamb

@iffyio iffyio merged commit 5d5c90c into apache:main Aug 21, 2025
10 checks passed
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

epic --

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.

3 participants