GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update age_load to load scalar property values with appropriate type (#1519) (#1525) by rafsun42 · Pull Request #1579 · apache/age

Conversation

@rafsun42

@rafsun42 rafsun42 commented Feb 8, 2024

Copy link
Copy Markdown
Member
  • Update age_load to load scalar property values with appropriate type (Update age_load to load scalar property values with appropriate type #1519) (Update age_load to make property value conversion optional #1525)
  • Borrow json_validate() from PG16

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rafsun42 added 2 commits February 8, 2024 15:23
@rafsun42
Update age_load to load scalar property values with appropriate type (a…
b97421b
…pache#1519) (apache#1525)

Previously, property values from csv files were always loaded as strings. This
patch adds a boolean function parameter `load_as_agtype`. When this parameter
is true, values are converted to an appropriate scalar type (i.e. string, bool,
numeric, null) while loading. Otherwise, values are loaded as string. It uses
the agtype_value_from_cstring() function for conversion.

Additional change(s):
-------------------
 - Fix: for csv rows in edge files, create_agtype_from_list_i()'s start_index
   is corrected to 4

Note:
----
 - It applies both patch 1519 and 1525.
@rafsun42
Borrow json_validate() from PG16
e6e444a
The json_validate() function is borrowed from PG16 with minor changes.
Because it does not exist in other versions of PG.
@github-actions github-actions Bot added the PG13 PostgreSQL13 label Feb 8, 2024
jrgemignani
jrgemignani approved these changes Feb 9, 2024
View reviewed changes
@jrgemignani
jrgemignani merged commit 8e61f40 into apache:PG13 Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jrgemignani jrgemignani jrgemignani approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

PG13 PostgreSQL13

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@rafsun42 @jrgemignani
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.