Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
9cfc3572
Commit
9cfc3572
authored
9 years ago
by
Allen Gilliland
Browse files
Options
Downloads
Patches
Plain Diff
fix syncing of _metabase_metadata table which started failing at some point.
parent
fa77d45e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/metabase/driver/generic_sql.clj
+2
-2
2 additions, 2 deletions
src/metabase/driver/generic_sql.clj
src/metabase/driver/sync.clj
+1
-1
1 addition, 1 deletion
src/metabase/driver/sync.clj
with
3 additions
and
3 deletions
src/metabase/driver/generic_sql.clj
+
2
−
2
View file @
9cfc3572
...
...
@@ -172,8 +172,8 @@
(
-fetch-page
(
inc
page-num
)))))))]
(
fetch-page
0
)))
(
defn-
table-rows-seq
[
_
database
table
-name
]
(
k/select
(
korma-entity
database
{
:
table
-name
table-name
}
)))
(
defn-
table-rows-seq
[
_
database
table
]
(
k/select
(
korma-entity
database
table
)))
(
defn-
field-avg-length
[
driver
field
]
(
or
(
some->
(
korma-entity
(
field/table
field
))
...
...
This diff is collapsed.
Click to expand it.
src/metabase/driver/sync.clj
+
1
−
1
View file @
9cfc3572
...
...
@@ -230,7 +230,7 @@
This functionality is currently only used by the Sample Dataset. In order to use this functionality, drivers must implement optional fn `:table-rows-seq`."
[
driver
database
_metabase_metadata
]
(
doseq
[{
:keys
[
keypath
value
]}
(
driver/table-rows-seq
driver
database
(
:name
_metabase_metadata
)
)
]
(
doseq
[{
:keys
[
keypath
value
]}
(
driver/table-rows-seq
driver
database
_metabase_metadata
)]
(
let
[[
_
table-name
field-name
k
]
(
re-matches
#
"^([^.]+)\.(?:([^.]+)\.)?([^.]+)$"
keypath
)]
(
try
(
when
(
not=
1
(
if
field-name
(
k/update
Field
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment